diff options
author | Wolfy-J <[email protected]> | 2018-06-13 21:04:40 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 21:04:40 +0300 |
commit | cc214a55def60a30424d83a89a5947c229425259 (patch) | |
tree | 3759c09667c97ddd2f06ed2324ddefd9aded311b /service/http/service_test.go | |
parent | 5b78d3f646aef346cf51a1a7c9587b6e2aca2e5f (diff) |
nested uploads test
Diffstat (limited to 'service/http/service_test.go')
-rw-r--r-- | service/http/service_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/http/service_test.go b/service/http/service_test.go index 4903081e..c6e70825 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -111,7 +111,7 @@ func Test_Service_Echo(t *testing.T) { assert.NoError(t, c.Init(&testCfg{`{ "enable": true, - "address": ":8029", + "address": ":6029", "maxRequest": 1024, "uploads": { "dir": ` + tmpDir() + `, @@ -132,11 +132,11 @@ func Test_Service_Echo(t *testing.T) { assert.NotNil(t, s) assert.Equal(t, service.StatusConfigured, st) - go func() { c.Serve() }() + go func() { logrus.Println(c.Serve()) }() time.Sleep(time.Millisecond * 10) defer c.Stop() - req, err := http.NewRequest("GET", "http://localhost:8029?hello=world", nil) + req, err := http.NewRequest("GET", "http://localhost:6029?hello=world", nil) assert.NoError(t, err) r, err := http.DefaultClient.Do(req) |