summaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-11 14:57:47 +0300
committerWolfy-J <[email protected]>2018-06-11 14:57:47 +0300
commit846cec64f177a9cfef016a8225c4fae0faa29a0c (patch)
treea0dc1df41ab25793a2dd5ada80f3ca5de4615e7d /server_test.go
parent78fb74cfa5c0156f70c095a4f2cfee9851a9dc0f (diff)
more tests for http
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/server_test.go b/server_test.go
index ffca3f12..2e92aad8 100644
--- a/server_test.go
+++ b/server_test.go
@@ -13,7 +13,7 @@ func TestServer_PipesEcho(t *testing.T) {
&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: int64(runtime.NumCPU()),
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -39,7 +39,7 @@ func TestServer_SocketEcho(t *testing.T) {
Command: "php php-src/tests/client.php echo tcp",
Relay: "tcp://:9007",
RelayTimeout: 10 * time.Second,
- Pool: Config{
+ Pool: &Config{
NumWorkers: int64(runtime.NumCPU()),
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -64,7 +64,7 @@ func TestServer_Configure_BeforeStart(t *testing.T) {
&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: int64(runtime.NumCPU()),
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -75,7 +75,7 @@ func TestServer_Configure_BeforeStart(t *testing.T) {
err := srv.Reconfigure(&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: 2,
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -101,7 +101,7 @@ func TestServer_Stop_NotStarted(t *testing.T) {
&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: int64(runtime.NumCPU()),
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -116,7 +116,7 @@ func TestServer_Reconfigure(t *testing.T) {
&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: 1,
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -130,7 +130,7 @@ func TestServer_Reconfigure(t *testing.T) {
err := srv.Reconfigure(&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: 2,
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -146,7 +146,7 @@ func TestServer_Reset(t *testing.T) {
&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: 1,
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -168,7 +168,7 @@ func TestServer_ReplacePool(t *testing.T) {
&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: 1,
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,
@@ -197,7 +197,7 @@ func TestServer_ServerFailure(t *testing.T) {
srv := NewServer(&ServerConfig{
Command: "php php-src/tests/client.php echo pipes",
Relay: "pipes",
- Pool: Config{
+ Pool: &Config{
NumWorkers: 1,
AllocateTimeout: time.Second,
DestroyTimeout: time.Second,