Increase time for sleep call after write in test

This commit is contained in:
Cecylia Bocovich 2025-01-22 14:55:58 -05:00
parent b508457c0f
commit cb99d97760
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -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")