fix: use targeted DELETE in DAV test instead of full table wipe
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user