From c1669aadcd599e863970ec371e8b23ca669674d6 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 12 Feb 2020 11:07:18 +0300 Subject: Update pause time in Test_Serve_Client --- service/rpc/service_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/rpc/service_test.go') 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) { -- cgit v1.2.3