From 93c623bc1afc5e83068363aa1cd96cded79a768b Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 24 Mar 2026 20:46:16 -0400 Subject: [PATCH] fix: rename OPDS test libraries to include "test" for cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes the library names in TestOPDSSearchAcrossLibraries from: - "OPDS Lib 1" → "OPDS Test Lib 1" - "OPDS Lib 2" → "OPDS Test Lib 2" This ensures these libraries are properly cleaned up by the test cleanup logic that deletes libraries with "test" in their name. Combined with the cleanup fix in the previous commit, this ensures that all OPDS test libraries are removed after tests complete, preventing residual data in the database. Files changed: - cmd/server/tests/opds_test.go: Renamed libraries to include "test" --- cmd/server/tests/opds_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/server/tests/opds_test.go b/cmd/server/tests/opds_test.go index 1786c57..92f59dd 100644 --- a/cmd/server/tests/opds_test.go +++ b/cmd/server/tests/opds_test.go @@ -344,8 +344,8 @@ func TestOPDSSearchAcrossLibraries(t *testing.T) { client := &http.Client{} // Create two libraries - lib1Resp := createLibrary(t, client, setup, "OPDS Lib 1") - lib2Resp := createLibrary(t, client, setup, "OPDS Lib 2") + lib1Resp := createLibrary(t, client, setup, "OPDS Test Lib 1") + lib2Resp := createLibrary(t, client, setup, "OPDS Test Lib 2") // Add folders addFolderToLibrary(t, setup, lib1Resp["id"].(string), "/app/uploads")