Fixed flakey test.

This commit is contained in:
Taloth Saldono 2017-09-27 22:25:26 +02:00
parent eea342980e
commit 0236f6595b
1 changed files with 3 additions and 3 deletions

View File

@ -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))
) )
); );
} }
@ -85,7 +85,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.MostRecentFailure.Value < DateTime.UtcNow)) s => s.MostRecentFailure.Value <= DateTime.UtcNow))
) )
); );
} }
@ -116,4 +116,4 @@ namespace NzbDrone.Core.Test.Housekeeping.Housekeepers
} }
} }