From ef040b0115a89ab22fd618fcf90b5cd81b49b54c Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Sun, 18 Oct 2020 22:56:31 +0100 Subject: [PATCH] Fix stream closing tests --- internal/multiplex/stream_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/multiplex/stream_test.go b/internal/multiplex/stream_test.go index 27541c3..14931f1 100644 --- a/internal/multiplex/stream_test.go +++ b/internal/multiplex/stream_test.go @@ -281,7 +281,7 @@ func TestStream_Close(t *testing.T) { if err != nil { t.Errorf("can't read residual data %v", err) } - time.Sleep(100 * time.Microsecond) + time.Sleep(100 * time.Millisecond) if sI, _ := sesh.streams.Load(stream.(*Stream).id); sI != nil { t.Error("stream still exists") return