fix: use targeted DELETE in DAV test instead of full table wipe

This commit is contained in:
2026-07-10 20:53:04 +01:00
parent 50ce98d729
commit b91339ec56
+1 -1
View File
@@ -89,7 +89,7 @@ func TestGetContactByURI_NotFound(t *testing.T) {
func TestListAllContacts_Empty(t *testing.T) { func TestListAllContacts_Empty(t *testing.T) {
ctx := context.Background() ctx := context.Background()
_, err := testSvc.db.Exec(ctx, "DELETE FROM dav_cards") _, err := testSvc.db.Exec(ctx, "DELETE FROM dav_cards WHERE uri LIKE 'test-%'")
require.NoError(t, err) require.NoError(t, err)
contacts, err := testSvc.ListAllContacts() contacts, err := testSvc.ListAllContacts()