Skip to content

Commit

Permalink
fix data race in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Jun 15, 2018
1 parent dfef39c commit 1504d7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1504d7a

Please sign in to comment.