summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-02 11:25:19 +0300
committerValery Piashchynski <[email protected]>2020-12-02 11:25:19 +0300
commit3bf8089e46abd35e75fd36caa1038e80b57938eb (patch)
tree7e4862cf19cb49292d5637b2b7e2f382d75c9e3d /service
parent22e112187c0b3333e7c09456068a5782d4a939bc (diff)
Rotate ports in the Test_Service_PidEcho test
Diffstat (limited to 'service')
-rw-r--r--service/limit/service_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/limit/service_test.go b/service/limit/service_test.go
index b358c1c1..d6702a29 100644
--- a/service/limit/service_test.go
+++ b/service/limit/service_test.go
@@ -63,7 +63,7 @@ func Test_Service_PidEcho(t *testing.T) {
err := c.Init(&testCfg{
httpCfg: `{
- "address": ":17029",
+ "address": ":27029",
"workers":{
"command": "php ../../tests/http/client.php pid pipes",
"pool": {"numWorkers": 1}
@@ -91,8 +91,8 @@ func Test_Service_PidEcho(t *testing.T) {
}
}()
- time.Sleep(time.Millisecond * 100)
- req, err := http.NewRequest("GET", "http://localhost:17029", nil)
+ time.Sleep(time.Millisecond * 800)
+ req, err := http.NewRequest("GET", "http://localhost:27029", nil)
if err != nil {
return err
}