diff --git a/core/mr/mapreduce_test.go b/core/mr/mapreduce_test.go index 60b1427c..6aa924f5 100644 --- a/core/mr/mapreduce_test.go +++ b/core/mr/mapreduce_test.go @@ -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