1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 21:18:13 -05:00

[PM-18079] Fix intermittent failing database integration tests. (#5381)

This commit is contained in:
Jimmy Vo 2025-02-07 09:47:47 -05:00 committed by GitHub
parent cc211647d7
commit a8b2dde615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,12 +252,12 @@ public class OrganizationDomainRepositoryTests
Txt = "btw+12345" Txt = "btw+12345"
}; };
var outside36HoursWindow = 20; var outside36HoursWindow = 50;
organizationDomain.SetNextRunDate(outside36HoursWindow); organizationDomain.SetNextRunDate(outside36HoursWindow);
await organizationDomainRepository.CreateAsync(organizationDomain); await organizationDomainRepository.CreateAsync(organizationDomain);
var date = DateTimeOffset.UtcNow.Date.AddDays(1); var date = DateTime.UtcNow.AddDays(1);
// Act // Act
var domains = await organizationDomainRepository.GetManyByNextRunDateAsync(date); var domains = await organizationDomainRepository.GetManyByNextRunDateAsync(date);