summaryrefslogtreecommitdiff
path: root/pkg/pool/static_pool_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-03 23:59:38 +0300
committerValery Piashchynski <[email protected]>2021-02-03 23:59:38 +0300
commit46206991fb841d13f4554b3269236c31d08bc78c (patch)
tree8dddddac6b1820e273cb07489554950c035de9c9 /pkg/pool/static_pool_test.go
parentf48602882cf3f7ab8f7bbecde0fc63ad3e0f29a6 (diff)
Increase channel cap for the tests
Diffstat (limited to 'pkg/pool/static_pool_test.go')
-rwxr-xr-xpkg/pool/static_pool_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go
index a8fe3baa..4cfd5ec6 100755
--- a/pkg/pool/static_pool_test.go
+++ b/pkg/pool/static_pool_test.go
@@ -167,7 +167,7 @@ func Test_StaticPool_JobError(t *testing.T) {
func Test_StaticPool_Broken_Replace(t *testing.T) {
ctx := context.Background()
- block := make(chan struct{}, 1)
+ block := make(chan struct{}, 10)
listener := func(event interface{}) {
if wev, ok := event.(events.WorkerEvent); ok {
@@ -491,7 +491,7 @@ func Test_Static_Pool_Slow_Destroy(t *testing.T) {
func Test_StaticPool_NoFreeWorkers(t *testing.T) {
ctx := context.Background()
- block := make(chan struct{}, 1)
+ block := make(chan struct{}, 10)
listener := func(event interface{}) {
if ev, ok := event.(events.PoolEvent); ok {