From 255b1c6cf5f75380466014b1a4b722649cf8d5b2 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 9 Feb 2026 14:42:30 -0500 Subject: [PATCH] Use /app/uploads directly for test library folder - API validates folder exists before adding to library - /app/uploads is mounted volume in container - Avoids need to create subdirectories - Simplifies test setup --- cmd/server/tests/test_helpers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/server/tests/test_helpers.go b/cmd/server/tests/test_helpers.go index 0ab82a9..06681cf 100644 --- a/cmd/server/tests/test_helpers.go +++ b/cmd/server/tests/test_helpers.go @@ -297,8 +297,9 @@ func createTestMediaItemID(t *testing.T, ts *httptest.Server, token string) stri libData := libResult["id"].(string) // Add a folder to the library (required before adding media items) + // Use /app/uploads which is already mounted in the test container folderReq := map[string]interface{}{ - "folder_path": "/app/uploads/test-library", + "folder_path": "/app/uploads", } folderBody, _ := json.Marshal(folderReq)