Răsfoiți Sursa

chore: make test stable (#3412)

Kevin Wan 1 an în urmă
părinte
comite
77da459165
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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