From f9479b34cb0ef1a27c7c34c27c064198cb483ad1 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 27 Sep 2017 15:44:19 +0400 Subject: [PATCH] sleep time should be greater than readTimeout (5 sec) otherwise, we're not testing ping/pongs. see https://github.com/tendermint/tendermint/pull/687#issuecomment-332494735 --- rpc/lib/rpc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/lib/rpc_test.go b/rpc/lib/rpc_test.go index 7415cb36..3ceaaa39 100644 --- a/rpc/lib/rpc_test.go +++ b/rpc/lib/rpc_test.go @@ -362,7 +362,7 @@ func TestWSClientPingPong(t *testing.T) { require.Nil(t, err) defer cl.Stop() - time.Sleep(3 * time.Second) + time.Sleep(6 * time.Second) } func randBytes(t *testing.T) []byte {