fix(tests): Fix t.Run block variable scope issues

This commit is contained in:
2026-02-10 13:06:32 -05:00
parent f15bf213ee
commit fd4aa5cb59
3 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func createTestLibrary(t *testing.T, ts *httptest.Server, token, name string) st
}
body, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", setup.Server.URL+"/api/libraries", bytes.NewBuffer(body))
req, _ := http.NewRequest("POST", ts.URL+"/api/libraries", bytes.NewBuffer(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+token)