Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 4c3aa31

Browse files
committed
Merge pull request #149 from datawolf/master
fix the testcase TestInParallelError
2 parents 4d629d5 + c3238e6 commit 4c3aa31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/util_inparallel_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ func TestInParallelError(t *testing.T) {
6161
for i := 0; i < size; i++ {
6262
task := func(index int) func() error {
6363
return func() error {
64-
booleanMap.Add(index, true)
64+
booleanMap.Add(index, false)
6565
t.Log("index", index)
6666
if index%2 == 0 {
6767
t.Log("return an error for", index)
6868
return fmt.Errorf("Error with %v", index)
6969
}
70+
booleanMap.Add(index, true)
7071
return nil
7172
}
7273
}(i)

0 commit comments

Comments
 (0)