Skip to content

Commit 2320d46

Browse files
committed
fix: test
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent a714b30 commit 2320d46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pool_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ func TestNewPoolWithQueueTask(t *testing.T) {
2828
p.Release()
2929
assert.Equal(t, 0, p.BusyWorkers())
3030
}
31+
32+
func TestPoolNumber(t *testing.T) {
33+
p := NewPool(0)
34+
p.Start()
35+
// shutdown all, and now running worker is 0
36+
p.Release()
37+
assert.Equal(t, 0, p.BusyWorkers())
38+
}

0 commit comments

Comments
 (0)