summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool_test.go')
-rwxr-xr-xstatic_pool_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index ffa39c2f..a3b19bad 100755
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -320,12 +320,15 @@ func Test_StaticPool_Debug_Worker(t *testing.T) {
assert.NotNil(t, p)
- assert.Len(t, p.Workers(), 1)
+ assert.Len(t, p.Workers(), 0)
var lastPID string
res, _ := p.Exec(Payload{Body: []byte("hello")})
assert.NotEqual(t, lastPID, string(res.Body))
+ // todo: necessary?
+ assert.Len(t, p.Workers(), 0)
+
for i := 0; i < 10; i++ {
lastPID = strconv.Itoa(int(p.Workers()[0].Pid()))
res, err := p.Exec(Payload{Body: []byte("hello")})