diff --git a/stream_test.go b/stream_test.go index 63a8329..98d2850 100644 --- a/stream_test.go +++ b/stream_test.go @@ -166,8 +166,9 @@ func testFile(f *Stream, t *testing.T) { } for i := 0; i < 10; i++ { - f.Write(testdata) + f.Write(testdata[:10]) <-time.After(10 * time.Millisecond) + f.Write(testdata[10:]) } f.Close()