1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 15:36:41 -05:00

fix pipe test

This commit is contained in:
Darien Raymond 2019-01-18 21:05:50 +01:00
parent 69178ed6a2
commit f66b127c0a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -117,6 +117,8 @@ func TestPipeWriteMultiThread(t *testing.T) {
return pWriter.WriteMultiBuffer(buf.MultiBuffer{b})
})
}
time.Sleep(time.Millisecond * 100)
pWriter.Close()
errg.Wait()
b, err := pReader.ReadMultiBuffer()