diff options
author | Valery Piashchynski <[email protected]> | 2021-02-03 23:59:38 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-02-03 23:59:38 +0300 |
commit | 46206991fb841d13f4554b3269236c31d08bc78c (patch) | |
tree | 8dddddac6b1820e273cb07489554950c035de9c9 /pkg/transport/socket | |
parent | f48602882cf3f7ab8f7bbecde0fc63ad3e0f29a6 (diff) |
Increase channel cap for the tests
Diffstat (limited to 'pkg/transport/socket')
-rw-r--r-- | pkg/transport/socket/socket_factory_spawn_test.go | 8 | ||||
-rwxr-xr-x | pkg/transport/socket/socket_factory_test.go | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/pkg/transport/socket/socket_factory_spawn_test.go b/pkg/transport/socket/socket_factory_spawn_test.go index 50729546..1361693b 100644 --- a/pkg/transport/socket/socket_factory_spawn_test.go +++ b/pkg/transport/socket/socket_factory_spawn_test.go @@ -110,7 +110,7 @@ func Test_Tcp_Failboot2(t *testing.T) { cmd := exec.Command("php", "../../../tests/failboot.php") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { @@ -162,7 +162,7 @@ func Test_Tcp_Broken2(t *testing.T) { cmd := exec.Command("php", "../../../tests/client.php", "broken", "tcp") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { @@ -274,7 +274,7 @@ func Test_Unix_Failboot2(t *testing.T) { cmd := exec.Command("php", "../../../tests/failboot.php") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { @@ -332,7 +332,7 @@ func Test_Unix_Broken2(t *testing.T) { cmd := exec.Command("php", "../../../tests/client.php", "broken", "unix") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { diff --git a/pkg/transport/socket/socket_factory_test.go b/pkg/transport/socket/socket_factory_test.go index 4abcd5d9..c13a897b 100755 --- a/pkg/transport/socket/socket_factory_test.go +++ b/pkg/transport/socket/socket_factory_test.go @@ -120,7 +120,7 @@ func Test_Tcp_Failboot(t *testing.T) { cmd := exec.Command("php", "../../../tests/failboot.php") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { @@ -199,7 +199,7 @@ func Test_Tcp_Broken(t *testing.T) { cmd := exec.Command("php", "../../../tests/client.php", "broken", "tcp") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { @@ -325,7 +325,7 @@ func Test_Unix_Failboot(t *testing.T) { cmd := exec.Command("php", "../../../tests/failboot.php") - finish := make(chan struct{}, 1) + finish := make(chan struct{}, 10) listener := func(event interface{}) { if ev, ok := event.(events.WorkerEvent); ok { if ev.Event == events.EventWorkerStderr { |