summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-15 15:55:33 +0300
committerWolfy-J <[email protected]>2018-06-15 15:55:33 +0300
commit1504d7ab08f4395ef81bcf7643435dcb5cad544e (patch)
tree1869878a3d2a70f798243d5cf103543db3475059
parentdfef39c64132192d13e2315364a74f1b0244791e (diff)
fix data race in testsv1.0.1
-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() {