diff options
author | Wolfy-J <[email protected]> | 2018-06-12 18:39:51 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-12 18:39:51 +0300 |
commit | 62518a119eb4c1372d6f1b6f1d0b75a017989c50 (patch) | |
tree | 599bbc0a41cd7bcde6c357e92fb28e18ae0f85a4 /service/rpc | |
parent | 18b2cb4a9b1a8a22ab260d2a0a611765f8e113a3 (diff) |
tests!
Diffstat (limited to 'service/rpc')
-rw-r--r-- | service/rpc/service_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/service/rpc/service_test.go b/service/rpc/service_test.go index a57ce1bd..f6aeb2aa 100644 --- a/service/rpc/service_test.go +++ b/service/rpc/service_test.go @@ -5,6 +5,7 @@ import ( "github.com/spiral/roadrunner/service" "github.com/stretchr/testify/assert" "testing" + "time" ) type testService struct{} @@ -74,7 +75,7 @@ func Test_Serve_Errors(t *testing.T) { func Test_Serve_Client(t *testing.T) { s := &Service{} - ok, err := s.Configure(&testCfg{`{"enable":true, "listen":"tcp://localhost:9008"}`}, nil) + ok, err := s.Configure(&testCfg{`{"enable":true, "listen":"tcp://localhost:9018"}`}, nil) assert.NoError(t, err) assert.True(t, ok) @@ -84,6 +85,7 @@ func Test_Serve_Client(t *testing.T) { go func() { assert.NoError(t, s.Serve()) }() + time.Sleep(time.Millisecond) client, err := s.Client() assert.NotNil(t, client) assert.NoError(t, err) |