浏览代码

chore: make test stable (#3412)

Kevin Wan 1 年之前
父节点
当前提交
77da459165
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/mr/mapreduce_test.go

+ 1 - 0
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