fix: rename OPDS test libraries to include "test" for cleanup
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"
This commit is contained in:
1 parent
8a5e6963d1
commit
93c623bc1a
1 file changed
+2
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user