From fb13bf5eb597dd913a4091c434b26752be4fe580 Mon Sep 17 00:00:00 2001 From: Arseny Balobanov Date: Thu, 31 Mar 2022 18:25:39 +0300 Subject: [PATCH] [wscat] Try increasing timeout. --- wscat/main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscat/main_test.go b/wscat/main_test.go index cf15c20..cfed874 100644 --- a/wscat/main_test.go +++ b/wscat/main_test.go @@ -76,7 +76,7 @@ func startCommand(t *testing.T, addr string) (conn *Conn, stop func()) { // try killing softly _ = cmd.Process.Signal(syscall.SIGTERM) - ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100) + ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*200) defer cancel() select { @@ -132,7 +132,7 @@ func TestWScat(t *testing.T) { } // give client time to make a request - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Millisecond * 200) stop() require.Equal(t, bytes.Join(in, nil), bytes.Join(received, nil))