diff options
author | Wolfy-J <[email protected]> | 2018-06-11 11:32:22 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-11 11:32:22 +0300 |
commit | f1e09d869e9a177228aadb6385ad578d2e29f90d (patch) | |
tree | fbc6228c4fa314d9379414cd28c20e71316acd5b /server_test.go | |
parent | 2f135b359575cc1625d1461bb6d8e478da8ccf54 (diff) |
fixing tests
Diffstat (limited to 'server_test.go')
-rw-r--r-- | server_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server_test.go b/server_test.go index 9e2367e4..ffca3f12 100644 --- a/server_test.go +++ b/server_test.go @@ -14,7 +14,7 @@ func TestServer_PipesEcho(t *testing.T) { Command: "php php-src/tests/client.php echo pipes", Relay: "pipes", Pool: Config{ - NumWorkers: uint64(runtime.NumCPU()), + NumWorkers: int64(runtime.NumCPU()), AllocateTimeout: time.Second, DestroyTimeout: time.Second, }, @@ -40,7 +40,7 @@ func TestServer_SocketEcho(t *testing.T) { Relay: "tcp://:9007", RelayTimeout: 10 * time.Second, Pool: Config{ - NumWorkers: uint64(runtime.NumCPU()), + NumWorkers: int64(runtime.NumCPU()), AllocateTimeout: time.Second, DestroyTimeout: time.Second, }, @@ -65,7 +65,7 @@ func TestServer_Configure_BeforeStart(t *testing.T) { Command: "php php-src/tests/client.php echo pipes", Relay: "pipes", Pool: Config{ - NumWorkers: uint64(runtime.NumCPU()), + NumWorkers: int64(runtime.NumCPU()), AllocateTimeout: time.Second, DestroyTimeout: time.Second, }, @@ -102,7 +102,7 @@ func TestServer_Stop_NotStarted(t *testing.T) { Command: "php php-src/tests/client.php echo pipes", Relay: "pipes", Pool: Config{ - NumWorkers: uint64(runtime.NumCPU()), + NumWorkers: int64(runtime.NumCPU()), AllocateTimeout: time.Second, DestroyTimeout: time.Second, }, |