1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-15 07:20:49 -05:00

Update test/Infrastructure.IntegrationTest/Auth/Repositories/AuthRequestRepositoryTests.cs

Co-authored-by: Patrick-Pimentel-Bitwarden <ppimentel@bitwarden.com>
This commit is contained in:
Ike 2025-06-13 13:26:52 -04:00 committed by GitHub
parent 295676d753
commit d525a1c93c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,9 +66,7 @@ public class AuthRequestRepositoryTests
Assert.NotNull(await authRequestRepository.GetByIdAsync(notExpiredAdminApprovalRequest.Id));
Assert.NotNull(await authRequestRepository.GetByIdAsync(notExpiredApprovedAdminApprovalRequest.Id));
// Ensure the repository responds with the amount of items it deleted and it deleted the right amount.
// NOTE: On local development this might fail on it's first run because the developer could have expired AuthRequests
// on their machine but aren't running the job that would delete them. The second run of this test should succeed.
// Ensure the repository responds with the amount of items it deleted and it deleted the right amount, which could include other auth requests from other tests so we take the minimum known acceptable amount.
Assert.True(numberOfDeleted >= 4);
}