We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a714b30 commit 2320d46Copy full SHA for 2320d46
pool_test.go
@@ -28,3 +28,11 @@ func TestNewPoolWithQueueTask(t *testing.T) {
28
p.Release()
29
assert.Equal(t, 0, p.BusyWorkers())
30
}
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