mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Revert "Move time.Sleep call in turbotunnel test"
This reverts commit 4497d68d6f
.
This commit is contained in:
parent
f353be8388
commit
443c633aab
1 changed files with 3 additions and 5 deletions
|
@ -208,16 +208,14 @@ func TestQueuePacketConnWriteToKCP(t *testing.T) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// A sleep after the Write makes buffer reuse more likely, and is needed
|
|
||||||
// to allow time for flushing all bytes written to the connection before close.
|
|
||||||
// This is not guaranteed by kcp-go. See https://github.com/xtaci/kcp-go/issues/273
|
|
||||||
time.Sleep(100 * time.Millisecond)
|
|
||||||
|
|
||||||
err = conn.Close()
|
err = conn.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A sleep after the Write makes buffer reuse more likely.
|
||||||
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
|
||||||
if len(transcript.Transcript) == 0 {
|
if len(transcript.Transcript) == 0 {
|
||||||
panic("empty transcript")
|
panic("empty transcript")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue