From cb99d977607e37f8c606a62e3c3f8de0fe0d33de Mon Sep 17 00:00:00 2001 From: Cecylia Bocovich Date: Wed, 22 Jan 2025 14:55:58 -0500 Subject: [PATCH] Increase time for sleep call after write in test --- common/turbotunnel/queuepacketconn_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/turbotunnel/queuepacketconn_test.go b/common/turbotunnel/queuepacketconn_test.go index 30e69e3..312e665 100644 --- a/common/turbotunnel/queuepacketconn_test.go +++ b/common/turbotunnel/queuepacketconn_test.go @@ -214,7 +214,8 @@ func TestQueuePacketConnWriteToKCP(t *testing.T) { } // A sleep after the Write makes buffer reuse more likely. - time.Sleep(100 * time.Millisecond) + // We need to sleep to allow the connection to flush after close + time.Sleep(1 * time.Second) if len(transcript.Transcript) == 0 { panic("empty transcript")