From 77da459165b9d97c4d0884ea7226214f0f835f63 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 12 Jul 2023 00:20:41 +0800 Subject: [PATCH] chore: make test stable (#3412) --- core/mr/mapreduce_test.go | 1 + 1 file changed, 1 insertion(+) 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