diff options
author | Valery Piashchynski <[email protected]> | 2020-02-12 11:07:18 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-12 11:07:18 +0300 |
commit | c1669aadcd599e863970ec371e8b23ca669674d6 (patch) | |
tree | bb6312678ebcd8076ac9eeb0493185f62a9568b3 /service/rpc | |
parent | a693018d213abbc5774c2a0fe60c1087c2da83da (diff) |
Update pause time in Test_Serve_Client
Diffstat (limited to 'service/rpc')
-rw-r--r-- | service/rpc/service_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/rpc/service_test.go b/service/rpc/service_test.go index ee87509a..11e8fcb5 100644 --- a/service/rpc/service_test.go +++ b/service/rpc/service_test.go @@ -71,16 +71,16 @@ func Test_Serve_Client(t *testing.T) { assert.NoError(t, s.Register("test", &testService{})) go func() { assert.NoError(t, s.Serve()) }() - time.Sleep(time.Millisecond) + time.Sleep(time.Second) client, err := s.Client() assert.NotNil(t, client) assert.NoError(t, err) - defer client.Close() var resp string assert.NoError(t, client.Call("test.Echo", "hello world", &resp)) assert.Equal(t, "hello world", resp) + assert.NoError(t, client.Close()) } func TestSetEnv(t *testing.T) { |