rpc: increase timeout in TestClientWebsocketPing #28371 (#1005)

Co-authored-by: Brandon Liu <lzqcn2000@126.com>
This commit is contained in:
Daniel Liu 2025-04-28 18:05:48 +08:00 committed by GitHub
parent 1dd15812f3
commit aa75ed2f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)