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