fix TestClientWebsocketPing

This commit is contained in:
bnovil 2023-10-18 14:54:07 +08:00
parent da55b23d21
commit 403523fd7c

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(), 5*time.Second)
)
defer cancel()
defer server.Shutdown(ctx)