diff --git a/src/server/server_concurrency_test.go b/src/server/server_concurrency_test.go index 2265f61..cf99f9b 100644 --- a/src/server/server_concurrency_test.go +++ b/src/server/server_concurrency_test.go @@ -12,7 +12,7 @@ import ( func TestConcurrency(t *testing.T) { addr := "http://127.0.0.1:8686" - rootPath := "testData" + rootPath := "tmpTestData" config := `{ "users": { "enableAuth": true, @@ -30,7 +30,10 @@ func TestConcurrency(t *testing.T) { "host": "127.0.0.1" }, "fs": { - "root": "testData" + "root": "tmpTestData" + }, + "db": { + "dbPath": "tmpTestData/quickshare" } }` diff --git a/src/server/server_files_test.go b/src/server/server_files_test.go index 4f59f70..adbb692 100644 --- a/src/server/server_files_test.go +++ b/src/server/server_files_test.go @@ -17,7 +17,7 @@ import ( func TestFileHandlers(t *testing.T) { addr := "http://127.0.0.1:8686" - rootPath := "testData" + rootPath := "tmpTestData" config := `{ "users": { "enableAuth": true, @@ -42,7 +42,10 @@ func TestFileHandlers(t *testing.T) { "host": "127.0.0.1" }, "fs": { - "root": "testData" + "root": "tmpTestData" + }, + "db": { + "dbPath": "tmpTestData/quickshare" } }` diff --git a/src/server/server_settings_test.go b/src/server/server_settings_test.go index b4865e6..ed8e4e8 100644 --- a/src/server/server_settings_test.go +++ b/src/server/server_settings_test.go @@ -17,7 +17,7 @@ import ( func TestSettingsHandlers(t *testing.T) { addr := "http://127.0.0.1:8686" - rootPath := "testData" + rootPath := "tmpTestData" config := `{ "users": { "enableAuth": true, @@ -42,7 +42,10 @@ func TestSettingsHandlers(t *testing.T) { "host": "127.0.0.1" }, "fs": { - "root": "testData" + "root": "tmpTestData" + }, + "db": { + "dbPath": "tmpTestData/quickshare" } }` adminName := "qs" diff --git a/src/server/server_space_limit_test.go b/src/server/server_space_limit_test.go index 2e14025..d385b54 100644 --- a/src/server/server_space_limit_test.go +++ b/src/server/server_space_limit_test.go @@ -6,13 +6,13 @@ import ( "testing" "github.com/ihexxa/quickshare/src/client" - q "github.com/ihexxa/quickshare/src/handlers" "github.com/ihexxa/quickshare/src/db/userstore" + q "github.com/ihexxa/quickshare/src/handlers" ) func TestSpaceLimit(t *testing.T) { addr := "http://127.0.0.1:8686" - rootPath := "testData" + rootPath := "tmpTestData" spaceLimit := 1000000 fileSize := 100000 if spaceLimit%fileSize != 0 { @@ -35,7 +35,10 @@ func TestSpaceLimit(t *testing.T) { "host": "127.0.0.1" }, "fs": { - "root": "testData" + "root": "tmpTestData" + }, + "db": { + "dbPath": "tmpTestData/quickshare" } }`, spaceLimit) diff --git a/src/server/server_users_test.go b/src/server/server_users_test.go index fc1e625..627fe90 100644 --- a/src/server/server_users_test.go +++ b/src/server/server_users_test.go @@ -16,7 +16,7 @@ import ( func TestUsersHandlers(t *testing.T) { addr := "http://127.0.0.1:8686" - rootPath := "testData" + rootPath := "tmpTestData" config := `{ "users": { "enableAuth": true, @@ -41,7 +41,10 @@ func TestUsersHandlers(t *testing.T) { "host": "127.0.0.1" }, "fs": { - "root": "testData" + "root": "tmpTestData" + }, + "db": { + "dbPath": "tmpTestData/quickshare" } }` adminName := "qs"