From 1504d7ab08f4395ef81bcf7643435dcb5cad544e Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Fri, 15 Jun 2018 15:55:33 +0300 Subject: fix data race in tests --- static_pool_test.go | 2 ++ 1 file changed, 2 insertions(+) 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() { -- cgit v1.2.3