From 490114908c8017c542cf073bdad814687ab3e4b9 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 00:25:52 +0300 Subject: H2C test update --- service/http/h2c_test.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'service/http') diff --git a/service/http/h2c_test.go b/service/http/h2c_test.go index 7bbc30ac..a2465a0a 100644 --- a/service/http/h2c_test.go +++ b/service/http/h2c_test.go @@ -52,16 +52,15 @@ func Test_Service_H2C(t *testing.T) { req.Header.Add("Connection", "HTTP2-Settings") req.Header.Add("HTTP2-Settings", "") - r, err := http.DefaultClient.Do(req) - assert.NoError(t, err) - defer func() { - err := r.Body.Close() - if err != nil { - t.Errorf("fail to close the Body: error %v", err) - } - }() + r, err2 := http.DefaultClient.Do(req) + if err2 != nil { + t.Fatal(err2) + } assert.Equal(t, "101 Switching Protocols", r.Status) - // will fail with h2c notice + err3 := r.Body.Close() + if err3 != nil { + t.Errorf("fail to close the Body: error %v", err3) + } } -- cgit v1.2.3 From 967d9959602537492adcd2f7216017fda5cc8308 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 01:04:59 +0300 Subject: Test_Service_Echo remove defers --- service/http/service_test.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'service/http') diff --git a/service/http/service_test.go b/service/http/service_test.go index c4b2c2c4..a1aecd24 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -146,26 +146,24 @@ func Test_Service_Echo(t *testing.T) { } }() time.Sleep(time.Millisecond * 100) - defer c.Stop() req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) assert.NoError(t, err) - defer func() { - err := r.Body.Close() - if err != nil { - t.Errorf("error closing the Body: error %v", err) - } - }() - b, err := ioutil.ReadAll(r.Body) assert.NoError(t, err) assert.NoError(t, err) assert.Equal(t, 201, r.StatusCode) assert.Equal(t, "WORLD", string(b)) + + err2 := r.Body.Close() + if err2 != nil { + t.Errorf("error closing the Body: error %v", err2) + } + c.Stop() } func Test_Service_Env(t *testing.T) { -- cgit v1.2.3 From 75e0092d8aab6033a002ad54bf667be71f45fecf Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 01:25:07 +0300 Subject: Test_RPC_Unix update --- service/http/rpc_test.go | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'service/http') diff --git a/service/http/rpc_test.go b/service/http/rpc_test.go index 0e4b2c0a..f7be3c70 100644 --- a/service/http/rpc_test.go +++ b/service/http/rpc_test.go @@ -124,17 +124,29 @@ func Test_RPC_Unix(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - res, _, _ := get("http://localhost:6029") - assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res) + res, _, err := get("http://localhost:6029") + if err != nil { + t.Fatal(err) + } + if ss.rr.Workers() != nil && len(ss.rr.Workers()) > 0 { + assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res) + } else { + t.Fatal("no workers initialized") + } cl, err := rs.Client() - assert.NoError(t, err) + if err != nil { + t.Fatal(err) + } r := "" assert.NoError(t, cl.Call("http.Reset", true, &r)) assert.Equal(t, "OK", r) - res2, _, _ := get("http://localhost:6029") + res2, _, err := get("http://localhost:6029") + if err != nil { + t.Fatal(err) + } assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res2) assert.NotEqual(t, res, res2) } -- cgit v1.2.3 From c69a026d37a551d64c14c04e36690de63f873320 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 01:31:08 +0300 Subject: Move c.Stop() to end of function, since that goroutine can start after c.Stop() (there is no order) --- service/http/fcgi_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/http') diff --git a/service/http/fcgi_test.go b/service/http/fcgi_test.go index 0cfc6e41..808dedcf 100644 --- a/service/http/fcgi_test.go +++ b/service/http/fcgi_test.go @@ -84,7 +84,6 @@ func Test_FCGI_Service_Request_Uri(t *testing.T) { go func() { assert.NoError(t, c.Serve()) }() time.Sleep(time.Millisecond * 100) - defer c.Stop() fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6083") @@ -102,4 +101,5 @@ func Test_FCGI_Service_Request_Uri(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 200, w.Result().StatusCode) assert.Equal(t, "http://site.local/hello-world", string(body)) + c.Stop() } -- cgit v1.2.3 From 6dd2ea9f38003e9c2e7bb54da20fabbabdd696ed Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 01:51:55 +0300 Subject: Test_FCGI_Service update --- service/http/fcgi_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/http') diff --git a/service/http/fcgi_test.go b/service/http/fcgi_test.go index 808dedcf..e68b2e7f 100644 --- a/service/http/fcgi_test.go +++ b/service/http/fcgi_test.go @@ -37,8 +37,7 @@ func Test_FCGI_Service_Echo(t *testing.T) { s.(*Service).Stop() go func() { assert.NoError(t, c.Serve()) }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() + time.Sleep(time.Second * 1) fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6082") @@ -56,6 +55,7 @@ func Test_FCGI_Service_Echo(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 201, w.Result().StatusCode) assert.Equal(t, "WORLD", string(body)) + c.Stop() } func Test_FCGI_Service_Request_Uri(t *testing.T) { @@ -83,7 +83,7 @@ func Test_FCGI_Service_Request_Uri(t *testing.T) { s.(*Service).Stop() go func() { assert.NoError(t, c.Serve()) }() - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Second * 1) fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6083") -- cgit v1.2.3 From c664a752e17d148db31e05317dd8f4cdb069281c Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 02:02:56 +0300 Subject: Test_RPC update --- service/http/rpc_test.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'service/http') diff --git a/service/http/rpc_test.go b/service/http/rpc_test.go index f7be3c70..1e5a18aa 100644 --- a/service/http/rpc_test.go +++ b/service/http/rpc_test.go @@ -55,10 +55,13 @@ func Test_RPC(t *testing.T) { t.Errorf("error during the Serve: error %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() - res, _, _ := get("http://localhost:6029") + time.Sleep(time.Second) + + res, _, err := get("http://localhost:6029") + if err != nil { + t.Fatal(err) + } assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res) cl, err := rs.Client() @@ -68,9 +71,13 @@ func Test_RPC(t *testing.T) { assert.NoError(t, cl.Call("http.Reset", true, &r)) assert.Equal(t, "OK", r) - res2, _, _ := get("http://localhost:6029") + res2, _, err := get("http://localhost:6029") + if err != nil { + t.Fatal() + } assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res2) assert.NotEqual(t, res, res2) + c.Stop() } func Test_RPC_Unix(t *testing.T) { -- cgit v1.2.3 From b3c8c7170bb9a7d5b218faf84d7a5f17cb15404d Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 10:23:24 +0300 Subject: Set different ports for each testcase --- service/http/service_test.go | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'service/http') diff --git a/service/http/service_test.go b/service/http/service_test.go index a1aecd24..2bb4b905 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -176,7 +176,7 @@ func Test_Service_Env(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6031", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -206,10 +206,10 @@ func Test_Service_Env(t *testing.T) { t.Errorf("serve error: %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:6029", nil) + time.Sleep(time.Second * 1) + + req, err := http.NewRequest("GET", "http://localhost:6031", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) @@ -227,6 +227,7 @@ func Test_Service_Env(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 200, r.StatusCode) assert.Equal(t, "ENV_VALUE", string(b)) + c.Stop() } func Test_Service_ErrorEcho(t *testing.T) { @@ -238,7 +239,7 @@ func Test_Service_ErrorEcho(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6030", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -274,10 +275,10 @@ func Test_Service_ErrorEcho(t *testing.T) { t.Errorf("serve error: %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) + time.Sleep(time.Second) + + req, err := http.NewRequest("GET", "http://localhost:6030?hello=world", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) @@ -297,6 +298,7 @@ func Test_Service_ErrorEcho(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 201, r.StatusCode) assert.Equal(t, "WORLD", string(b)) + c.Stop() } func Test_Service_Middleware(t *testing.T) { @@ -308,7 +310,7 @@ func Test_Service_Middleware(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6032", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -352,7 +354,7 @@ func Test_Service_Middleware(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) + req, err := http.NewRequest("GET", "http://localhost:6032?hello=world", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) @@ -370,7 +372,7 @@ func Test_Service_Middleware(t *testing.T) { t.Errorf("error closing the Body: error %v", err) } - req, err = http.NewRequest("GET", "http://localhost:6029/halt", nil) + req, err = http.NewRequest("GET", "http://localhost:6032/halt", nil) assert.NoError(t, err) r, err = http.DefaultClient.Do(req) @@ -397,7 +399,7 @@ func Test_Service_Listener(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6033", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -446,7 +448,7 @@ func Test_Service_Error(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6034", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -475,7 +477,7 @@ func Test_Service_Error2(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6035", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -504,7 +506,7 @@ func Test_Service_Error3(t *testing.T) { assert.Error(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6036", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, -- cgit v1.2.3 From 8240ea02181e80f8ac1347054e50718b4ba18ba0 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 11:19:17 +0300 Subject: Resolve test issues --- service/http/rpc_test.go | 9 +++++++-- service/http/service_test.go | 5 +++-- service/http/ssl_test.go | 15 +++++++++------ 3 files changed, 19 insertions(+), 10 deletions(-) (limited to 'service/http') diff --git a/service/http/rpc_test.go b/service/http/rpc_test.go index 1e5a18aa..1971f237 100644 --- a/service/http/rpc_test.go +++ b/service/http/rpc_test.go @@ -128,21 +128,24 @@ func Test_RPC_Unix(t *testing.T) { t.Errorf("error during the Serve: error %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() + + time.Sleep(time.Second) res, _, err := get("http://localhost:6029") if err != nil { + c.Stop() t.Fatal(err) } if ss.rr.Workers() != nil && len(ss.rr.Workers()) > 0 { assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res) } else { + c.Stop() t.Fatal("no workers initialized") } cl, err := rs.Client() if err != nil { + c.Stop() t.Fatal(err) } @@ -152,10 +155,12 @@ func Test_RPC_Unix(t *testing.T) { res2, _, err := get("http://localhost:6029") if err != nil { + c.Stop() t.Fatal(err) } assert.Equal(t, strconv.Itoa(*ss.rr.Workers()[0].Pid), res2) assert.NotEqual(t, res, res2) + c.Stop() } func Test_Workers(t *testing.T) { diff --git a/service/http/service_test.go b/service/http/service_test.go index 2bb4b905..968230a7 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -351,8 +351,7 @@ func Test_Service_Middleware(t *testing.T) { t.Errorf("serve error: %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() + time.Sleep(time.Second) req, err := http.NewRequest("GET", "http://localhost:6032?hello=world", nil) assert.NoError(t, err) @@ -386,8 +385,10 @@ func Test_Service_Middleware(t *testing.T) { err = r.Body.Close() if err != nil { + c.Stop() t.Errorf("error closing the Body: error %v", err) } + c.Stop() } func Test_Service_Listener(t *testing.T) { diff --git a/service/http/ssl_test.go b/service/http/ssl_test.go index 49bba6cb..fc8d5c54 100644 --- a/service/http/ssl_test.go +++ b/service/http/ssl_test.go @@ -109,8 +109,8 @@ func Test_SSL_Service_NoRedirect(t *testing.T) { t.Errorf("error during the Serve: error %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() + + time.Sleep(time.Second) req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) assert.NoError(t, err) @@ -118,10 +118,7 @@ func Test_SSL_Service_NoRedirect(t *testing.T) { r, err := sslClient.Do(req) assert.NoError(t, err) defer func() { - err := r.Body.Close() - if err != nil { - t.Errorf("fail to close the Body: error %v", err) - } + }() assert.Nil(t, r.TLS) @@ -132,6 +129,12 @@ func Test_SSL_Service_NoRedirect(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 201, r.StatusCode) assert.Equal(t, "WORLD", string(b)) + + err2 := r.Body.Close() + if err2 != nil { + t.Errorf("fail to close the Body: error %v", err2) + } + c.Stop() } func Test_SSL_Service_Redirect(t *testing.T) { -- cgit v1.2.3 From 107116d6ee3c519959d0ab17b99b22c82fc078a2 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 11:36:57 +0300 Subject: Test_SSL_Service_Redirect update --- service/http/ssl_test.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'service/http') diff --git a/service/http/ssl_test.go b/service/http/ssl_test.go index fc8d5c54..9f7b4bc6 100644 --- a/service/http/ssl_test.go +++ b/service/http/ssl_test.go @@ -171,8 +171,8 @@ func Test_SSL_Service_Redirect(t *testing.T) { t.Errorf("error during the Serve: error %v", err) } }() - time.Sleep(time.Millisecond * 100) - defer c.Stop() + + time.Sleep(time.Second) req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) assert.NoError(t, err) @@ -180,10 +180,7 @@ func Test_SSL_Service_Redirect(t *testing.T) { r, err := sslClient.Do(req) assert.NoError(t, err) defer func() { - err := r.Body.Close() - if err != nil { - t.Errorf("fail to close the Body: error %v", err) - } + }() assert.NotNil(t, r.TLS) @@ -194,6 +191,12 @@ func Test_SSL_Service_Redirect(t *testing.T) { assert.NoError(t, err) assert.Equal(t, 201, r.StatusCode) assert.Equal(t, "WORLD", string(b)) + + err2 := r.Body.Close() + if err2 != nil { + t.Errorf("fail to close the Body: error %v", err2) + } + c.Stop() } func Test_SSL_Service_Push(t *testing.T) { -- cgit v1.2.3 From e309cf676c01db44545505d6b64ca3dc69bff89e Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 15:04:33 +0300 Subject: ssl_test ports update --- service/http/ssl_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'service/http') diff --git a/service/http/ssl_test.go b/service/http/ssl_test.go index 9f7b4bc6..678e6d60 100644 --- a/service/http/ssl_test.go +++ b/service/http/ssl_test.go @@ -84,7 +84,7 @@ func Test_SSL_Service_NoRedirect(t *testing.T) { c.Register(ID, &Service{}) assert.NoError(t, c.Init(&testCfg{httpCfg: `{ - "address": ":6029", + "address": ":6030", "ssl": { "port": 6900, "key": "fixtures/server.key", @@ -112,7 +112,7 @@ func Test_SSL_Service_NoRedirect(t *testing.T) { time.Sleep(time.Second) - req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) + req, err := http.NewRequest("GET", "http://localhost:6030?hello=world", nil) assert.NoError(t, err) r, err := sslClient.Do(req) @@ -145,7 +145,7 @@ func Test_SSL_Service_Redirect(t *testing.T) { c.Register(ID, &Service{}) assert.NoError(t, c.Init(&testCfg{httpCfg: `{ - "address": ":6029", + "address": ":6031", "ssl": { "port": 6900, "redirect": true, @@ -174,7 +174,7 @@ func Test_SSL_Service_Redirect(t *testing.T) { time.Sleep(time.Second) - req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) + req, err := http.NewRequest("GET", "http://localhost:6031?hello=world", nil) assert.NoError(t, err) r, err := sslClient.Do(req) @@ -207,7 +207,7 @@ func Test_SSL_Service_Push(t *testing.T) { c.Register(ID, &Service{}) assert.NoError(t, c.Init(&testCfg{httpCfg: `{ - "address": ":6029", + "address": ":6032", "ssl": { "port": 6900, "redirect": true, -- cgit v1.2.3 From 62c21596cc20af31d3248b289f62221a2f730e75 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 15:13:46 +0300 Subject: ssl ports rotate --- service/http/ssl_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'service/http') diff --git a/service/http/ssl_test.go b/service/http/ssl_test.go index 678e6d60..fe42068e 100644 --- a/service/http/ssl_test.go +++ b/service/http/ssl_test.go @@ -86,7 +86,7 @@ func Test_SSL_Service_NoRedirect(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "address": ":6030", "ssl": { - "port": 6900, + "port": 6901, "key": "fixtures/server.key", "cert": "fixtures/server.crt" }, @@ -147,7 +147,7 @@ func Test_SSL_Service_Redirect(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "address": ":6031", "ssl": { - "port": 6900, + "port": 6902, "redirect": true, "key": "fixtures/server.key", "cert": "fixtures/server.crt" @@ -209,7 +209,7 @@ func Test_SSL_Service_Push(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "address": ":6032", "ssl": { - "port": 6900, + "port": 6903, "redirect": true, "key": "fixtures/server.key", "cert": "fixtures/server.crt" -- cgit v1.2.3 From a9fd9d7af11a4a08ea73e61ee3a01951d78ef70b Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 15:24:47 +0300 Subject: port rotation --- service/http/ssl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/http') diff --git a/service/http/ssl_test.go b/service/http/ssl_test.go index fe42068e..b82aa75c 100644 --- a/service/http/ssl_test.go +++ b/service/http/ssl_test.go @@ -236,7 +236,7 @@ func Test_SSL_Service_Push(t *testing.T) { time.Sleep(time.Millisecond * 100) defer c.Stop() - req, err := http.NewRequest("GET", "https://localhost:6900?hello=world", nil) + req, err := http.NewRequest("GET", "https://localhost:6903?hello=world", nil) assert.NoError(t, err) r, err := sslClient.Do(req) -- cgit v1.2.3 From 4950276fef1b5d78d38933e5b9d5c9beaeef512c Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 28 Feb 2020 16:45:41 +0300 Subject: rotate ports --- service/http/service_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/http') diff --git a/service/http/service_test.go b/service/http/service_test.go index 968230a7..1a1c32ae 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -115,7 +115,7 @@ func Test_Service_Echo(t *testing.T) { assert.NoError(t, c.Init(&testCfg{httpCfg: `{ "enable": true, - "address": ":6029", + "address": ":6536", "maxRequestSize": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -147,7 +147,7 @@ func Test_Service_Echo(t *testing.T) { }() time.Sleep(time.Millisecond * 100) - req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) + req, err := http.NewRequest("GET", "http://localhost:6536?hello=world", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) -- cgit v1.2.3