chore: make test stable (#3412)

This commit is contained in:
Kevin Wan
2023-07-12 00:20:41 +08:00
committed by GitHub
parent 13cdbdc98b
commit 77da459165

View File

@@ -574,6 +574,7 @@ func TestMapReduceWithContext(t *testing.T) {
cancel()
}
writer.Write(i)
time.Sleep(time.Millisecond)
}, func(pipe <-chan int, cancel func(error)) {
for item := range pipe {
i := item