summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-12 21:13:54 +0300
committerWolfy-J <[email protected]>2018-06-12 21:13:54 +0300
commit47aa87a1cd438c6c99a4640f6af60fd408b5c3bc (patch)
treeb405ad7e1d3e6810c818be47a9cf67b7a534053c /static_pool_test.go
parent99c1121d8fd31b7b61b6c22e181dc3c05a3f9f82 (diff)
improved worker watching
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index ec468389..548fb126 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -186,7 +186,7 @@ func Test_StaticPool_Broken_FromOutside(t *testing.T) {
destructed := make(chan interface{})
p.Listen(func(e int, ctx interface{}) {
if e == EventWorkerConstruct {
- close(destructed)
+ destructed <- nil
}
})