summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-26 14:13:42 +0300
committerValery Piashchynski <[email protected]>2020-11-26 14:13:42 +0300
commitb1f1c85480f04f7693d04351c356a668c32bde3d (patch)
treeb6d4a44c9368c34021518f083aff3180305c46ac
parent8b24468430460ef01bc351c81b1b53673bf5db36 (diff)
Rotate ports for the Middleware test
-rw-r--r--plugins/http/tests/configs/.rr-http.yaml2
-rw-r--r--plugins/http/tests/http_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/http/tests/configs/.rr-http.yaml b/plugins/http/tests/configs/.rr-http.yaml
index c7d6a999..c907c5e7 100644
--- a/plugins/http/tests/configs/.rr-http.yaml
+++ b/plugins/http/tests/configs/.rr-http.yaml
@@ -13,7 +13,7 @@ server:
http:
debug: true
- address: 127.0.0.1:8084
+ address: 127.0.0.1:18903
maxRequestSize: 1024
middleware: [ "" ]
uploads:
diff --git a/plugins/http/tests/http_test.go b/plugins/http/tests/http_test.go
index 103e7b3f..451566ca 100644
--- a/plugins/http/tests/http_test.go
+++ b/plugins/http/tests/http_test.go
@@ -843,7 +843,7 @@ func TestHttpMiddleware(t *testing.T) {
}
func middleware(t *testing.T) {
- req, err := http.NewRequest("GET", "http://localhost:8084?hello=world", nil)
+ req, err := http.NewRequest("GET", "http://localhost:18903?hello=world", nil)
assert.NoError(t, err)
r, err := http.DefaultClient.Do(req)
@@ -858,7 +858,7 @@ func middleware(t *testing.T) {
err = r.Body.Close()
assert.NoError(t, err)
- req, err = http.NewRequest("GET", "http://localhost:8084/halt", nil)
+ req, err = http.NewRequest("GET", "http://localhost:18903/halt", nil)
assert.NoError(t, err)
r, err = http.DefaultClient.Do(req)