summaryrefslogtreecommitdiff
path: root/protocol_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-10-13 13:55:20 +0300
committerValery Piashchynski <[email protected]>2020-10-13 13:55:20 +0300
commit0dc44d54cfcc9dd3fa09a41136f35a9a8d26b994 (patch)
treeffcb65010bebe9f5b5436192979e64b2402a6ec0 /protocol_test.go
parent08d6b6b7f773f83b286cd48c1a0fbec9a62fb42b (diff)
Initial commit of RR 2.0v2.0.0-alpha1
Diffstat (limited to 'protocol_test.go')
-rw-r--r--protocol_test.go5
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)