diff options
author | Valery Piashchynski <[email protected]> | 2020-02-28 17:33:27 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-28 17:33:27 +0300 |
commit | 456c9934a898fbbaf8e92e1b6bd815b6a8ffeffb (patch) | |
tree | bb727c3105a082ece946142fde1696ce2e895067 /service | |
parent | b9099f59ef0a18b72ffe9ef2565a7eaefb3f1a2d (diff) |
Http ports randomize
Diffstat (limited to 'service')
-rw-r--r-- | service/headers/service_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/service/headers/service_test.go b/service/headers/service_test.go index ce0f17cb..120bb3d6 100644 --- a/service/headers/service_test.go +++ b/service/headers/service_test.go @@ -46,7 +46,7 @@ func Test_RequestHeaders(t *testing.T) { headers: `{"request":{"input": "custom-header"}}`, httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6078", "maxRequestSize": 1024, "workers":{ "command": "php ../../tests/http/client.php header pipes", @@ -68,7 +68,7 @@ func Test_RequestHeaders(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:6029?hello=value", nil) + req, err := http.NewRequest("GET", "http://localhost:6078?hello=value", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) @@ -100,7 +100,7 @@ func Test_ResponseHeaders(t *testing.T) { headers: `{"response":{"output": "output-header"},"request":{"input": "custom-header"}}`, httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6079", "maxRequestSize": 1024, "workers":{ "command": "php ../../tests/http/client.php header pipes", @@ -122,7 +122,7 @@ func Test_ResponseHeaders(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:6029?hello=value", nil) + req, err := http.NewRequest("GET", "http://localhost:6079?hello=value", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) @@ -164,7 +164,7 @@ func TestCORS_OPTIONS(t *testing.T) { }`, httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6379", "maxRequestSize": 1024, "workers":{ "command": "php ../../tests/http/client.php headers pipes", @@ -186,7 +186,7 @@ func TestCORS_OPTIONS(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - req, err := http.NewRequest("OPTIONS", "http://localhost:6029", nil) + req, err := http.NewRequest("OPTIONS", "http://localhost:6379", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) @@ -232,7 +232,7 @@ func TestCORS_Pass(t *testing.T) { }`, httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6672", "maxRequestSize": 1024, "workers":{ "command": "php ../../tests/http/client.php headers pipes", @@ -254,7 +254,7 @@ func TestCORS_Pass(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:6029", nil) + req, err := http.NewRequest("GET", "http://localhost:6672", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) |