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:
parent
295676d753
commit
d525a1c93c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user