Commit 8d74342f authored by vipwzw's avatar vipwzw

auto ci

parent 227cb1e5
...@@ -111,20 +111,20 @@ func test() { ...@@ -111,20 +111,20 @@ func test() {
func TestParallel(t *testing.T) { func TestParallel(t *testing.T) {
/* /*
f1 := test f1 := test
f1() f1()
f2 := test f2 := test
f2() f2()
goSumMutex.Lock() goSumMutex.Lock()
goSum = 0 goSum = 0
goSumMutex.Unlock() goSumMutex.Unlock()
Parallel(f1, f2) Parallel(f1, f2)
goSumMutex.Lock() goSumMutex.Lock()
assert.True(t, goSum == 2) assert.True(t, goSum == 2)
goSumMutex.Unlock() 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