Unverified Commit 0383403a authored by Xin.Zh's avatar Xin.Zh Committed by GitHub

Merge pull request #44 from watermelo/fix_taskpool_test

fix: taskpool unittest case
parents a8ef0e5e 2a086490
...@@ -80,6 +80,7 @@ func TestTaskPoolSimple(t *testing.T) { ...@@ -80,6 +80,7 @@ func TestTaskPoolSimple(t *testing.T) {
}() }()
} }
wg.Wait() wg.Wait()
tp.Close()
cntValue := atomic.LoadInt64(cnt) cntValue := atomic.LoadInt64(cnt)
if taskCnt != cntValue { if taskCnt != cntValue {
......
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