summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static_pool_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index 548fb126..13c96d09 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -191,7 +191,9 @@ func Test_StaticPool_Broken_FromOutside(t *testing.T) {
})
// killing random worker and expecting pool to replace it
+ p.muw.Lock()
p.workers[0].cmd.Process.Kill()
+ p.muw.Unlock()
<-destructed
for _, w := range p.Workers() {