diff options
Diffstat (limited to 'protocol_test.go')
-rw-r--r-- | protocol_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocol_test.go b/protocol_test.go index 55c603a5..396ce992 100644 --- a/protocol_test.go +++ b/protocol_test.go @@ -1,10 +1,11 @@ package roadrunner import ( + "testing" + "github.com/pkg/errors" "github.com/spiral/goridge/v2" "github.com/stretchr/testify/assert" - "testing" ) type relayMock struct { @@ -36,7 +37,7 @@ func Test_Protocol_Errors(t *testing.T) { func Test_Protocol_FetchPID(t *testing.T) { pid, err := fetchPID(&relayMock{error: false, payload: "{\"pid\":100}"}) assert.NoError(t, err) - assert.Equal(t, 100, pid) + assert.Equal(t, int64(100), pid) _, err = fetchPID(&relayMock{error: true, payload: "{\"pid\":100}"}) assert.Error(t, err) |