summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-18 18:50:49 +0300
committerValery Piashchynski <[email protected]>2020-11-18 18:50:49 +0300
commite9595a5c133ff02b765c0b59913593e7f91bc4e7 (patch)
tree136003367d409bd1e04d7a313e1cc6e15496a7c4 /static_pool_test.go
parent8fab090abc369237d5f9be2ee676005b24c2a470 (diff)
Update static_pool_test, add pause for getting workers
Diffstat (limited to 'static_pool_test.go')
-rwxr-xr-xstatic_pool_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index 27907af5..f8478e14 100755
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -174,6 +174,7 @@ func Test_StaticPool_Broken_Replace(t *testing.T) {
wg := &sync.WaitGroup{}
wg.Add(1)
+ time.Sleep(time.Second)
workers := p.Workers()
for i := 0; i < len(workers); i++ {
workers[i].AddListener(func(event interface{}) {