fix(tests): use local socket

This commit is contained in:
hexxa 2021-08-18 15:03:45 +08:00 committed by Hexxa
parent 4f388d1a11
commit 422232a34f
4 changed files with 8 additions and 4 deletions

View file

@ -27,7 +27,8 @@ func TestConcurrency(t *testing.T) {
"limiterCyc": 1000 "limiterCyc": 1000
}, },
"server": { "server": {
"debug": true "debug": true,
"host": "127.0.0.1"
}, },
"fs": { "fs": {
"root": "testData" "root": "testData"

View file

@ -30,7 +30,8 @@ func TestFileHandlers(t *testing.T) {
"limiterCyc": 1000 "limiterCyc": 1000
}, },
"server": { "server": {
"debug": true "debug": true,
"host": "127.0.0.1"
}, },
"fs": { "fs": {
"root": "testData" "root": "testData"

View file

@ -26,7 +26,8 @@ func TestSpaceLimit(t *testing.T) {
"limiterCyc": 1000 "limiterCyc": 1000
}, },
"server": { "server": {
"debug": true "debug": true,
"host": "127.0.0.1"
}, },
"fs": { "fs": {
"root": "testData" "root": "testData"

View file

@ -28,7 +28,8 @@ func TestUsersHandlers(t *testing.T) {
"limiterCyc": 1000 "limiterCyc": 1000
}, },
"server": { "server": {
"debug": true "debug": true,
"host": "127.0.0.1"
}, },
"fs": { "fs": {
"root": "testData" "root": "testData"