Commit 59b555fc authored by vipwzw's avatar vipwzw

auto ci

parent 4f2585be
...@@ -117,15 +117,15 @@ func TestParallel(t *testing.T) { ...@@ -117,15 +117,15 @@ func TestParallel(t *testing.T) {
f2() f2()
assert.True(t, goSum == 2) assert.True(t, goSum == 2)
/* /*
goSumMutex.Lock()
goSum = 0
goSumMutex.Unlock()
Parallel(f1, f2)
goSumMutex.Lock() goSumMutex.Lock()
assert.True(t, goSum == 2) goSum = 0
goSumMutex.Unlock() goSumMutex.Unlock()
Parallel(f1, f2)
goSumMutex.Lock()
assert.True(t, goSum == 2)
goSumMutex.Unlock()
*/ */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment