fix pipe test

pull/1516/head
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
1 changed files with 2 additions and 0 deletions

View File

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