Fixed flaky test.

pull/2250/head
Taloth Saldono 7 years ago
parent b48eaa7fd3
commit f10174da37

@ -60,7 +60,7 @@ namespace NzbDrone.Core.Test.Housekeeping.Housekeepers
Mocker.GetMock<IDownloadClientStatusRepository>() Mocker.GetMock<IDownloadClientStatusRepository>()
.Verify(v => v.UpdateMany( .Verify(v => v.UpdateMany(
It.Is<List<DownloadClientStatus>>(i => i.All( It.Is<List<DownloadClientStatus>>(i => i.All(
s => s.InitialFailure.Value < DateTime.UtcNow)) s => s.InitialFailure.Value <= DateTime.UtcNow))
) )
); );
} }

@ -60,7 +60,7 @@ namespace NzbDrone.Core.Test.Housekeeping.Housekeepers
Mocker.GetMock<IIndexerStatusRepository>() Mocker.GetMock<IIndexerStatusRepository>()
.Verify(v => v.UpdateMany( .Verify(v => v.UpdateMany(
It.Is<List<IndexerStatus>>(i => i.All( It.Is<List<IndexerStatus>>(i => i.All(
s => s.InitialFailure.Value < DateTime.UtcNow)) s => s.InitialFailure.Value <= DateTime.UtcNow))
) )
); );
} }
@ -85,7 +85,7 @@ namespace NzbDrone.Core.Test.Housekeeping.Housekeepers
Mocker.GetMock<IIndexerStatusRepository>() Mocker.GetMock<IIndexerStatusRepository>()
.Verify(v => v.UpdateMany( .Verify(v => v.UpdateMany(
It.Is<List<IndexerStatus>>(i => i.All( It.Is<List<IndexerStatus>>(i => i.All(
s => s.MostRecentFailure.Value < DateTime.UtcNow)) s => s.MostRecentFailure.Value <= DateTime.UtcNow))
) )
); );
} }

Loading…
Cancel
Save