1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-25 13:24:50 -05:00

Use single delete method

This commit is contained in:
Thomas Rittson 2025-05-13 14:43:55 +10:00
parent ad7ce2abf4
commit 69afce6f4e
No known key found for this signature in database
GPG Key ID: CDDDA03861C35E27

View File

@ -87,8 +87,9 @@ public class CollectionRepositoryReplaceTests
Assert.Single(users, u => u.Id == orgUser3.Id && u.Manage && !u.HidePasswords && u.ReadOnly);
// Clean up data
// TODO: why doesn't delete many work?
await userRepository.DeleteManyAsync([user1, user2, user3]);
await userRepository.DeleteAsync(user1);
await userRepository.DeleteAsync(user2);
await userRepository.DeleteAsync(user3);
await organizationRepository.DeleteAsync(organization);
}