rpc: increase timeout in TestClientWebsocketPing (#28371)

This commit is contained in:
Brandon Liu 2023-10-19 16:08:36 +08:00 committed by GitHub
parent d10a2f6ab7
commit ec1a0502bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ func TestClientWebsocketPing(t *testing.T) {
var (
sendPing = make(chan struct{})
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 server.Shutdown(ctx)