From 8319ea20411aa5c3ec6439d1969b4984c701e33e Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 7 Feb 2026 21:30:22 -0500 Subject: [PATCH] test: use dynamic path helper for upload folder test - Replace hardcoded /app/uploads with getUploadPath() - Update assertions to use dynamic paths - Improve test log message to show actual path used - Ensures tests work in both container and host environments --- cmd/server/tests/universal_progress_integration_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/server/tests/universal_progress_integration_test.go b/cmd/server/tests/universal_progress_integration_test.go index cef59b0..ae9b6c9 100644 --- a/cmd/server/tests/universal_progress_integration_test.go +++ b/cmd/server/tests/universal_progress_integration_test.go @@ -211,7 +211,7 @@ func TestPhase1Integration(t *testing.T) { // Step 3: Add /app/uploads folder to the library t.Run("Step3_AddUploadsFolder", func(t *testing.T) { folderReq := map[string]interface{}{ - "folder_path": "/app/uploads", + "folder_path": getUploadPath(), } body, _ := json.Marshal(folderReq) @@ -230,9 +230,9 @@ func TestPhase1Integration(t *testing.T) { var result map[string]interface{} json.NewDecoder(resp.Body).Decode(&result) - assert.Equal(t, "/app/uploads", result["folder_path"]) + assert.Equal(t, getUploadPath(), result["folder_path"]) - t.Logf("✅ Step 3 PASSED: /app/uploads folder added to library") + t.Logf("✅ Step 3 PASSED: %s folder added to library", getUploadPath()) }) // Step 4: Scan the library