mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +00:00
Co-authored-by: Brandon Liu <lzqcn2000@126.com>
This commit is contained in:
parent
1dd15812f3
commit
aa75ed2f6b
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ func TestClientWebsocketPing(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
sendPing = make(chan struct{})
|
sendPing = make(chan struct{})
|
||||||
server = wsPingTestServer(t, sendPing)
|
server = wsPingTestServer(t, sendPing)
|
||||||
ctx, cancel = context.WithTimeout(context.Background(), 1*time.Second)
|
ctx, cancel = context.WithTimeout(context.Background(), 2*time.Second)
|
||||||
)
|
)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
defer server.Shutdown(ctx)
|
defer server.Shutdown(ctx)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue