1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-26 15:52:42 +00:00

Fixed: Flaky Housekeeper Tests

This commit is contained in:
Qstick 2017-11-16 13:35:11 -05:00
parent 4f6415b0e5
commit 26935bd82f
2 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using FizzWare.NBuilder;
@ -60,7 +60,7 @@ public void should_set_initial_failure_when_its_in_the_future()
Mocker.GetMock<IDownloadClientStatusRepository>()
.Verify(v => v.UpdateMany(
It.Is<List<DownloadClientStatus>>(i => i.All(
s => s.InitialFailure.Value < DateTime.UtcNow))
s => s.InitialFailure.Value <= DateTime.UtcNow))
)
);
}
@ -85,7 +85,7 @@ public void should_set_most_recent_failure_when_its_in_the_future()
Mocker.GetMock<IDownloadClientStatusRepository>()
.Verify(v => v.UpdateMany(
It.Is<List<DownloadClientStatus>>(i => i.All(
s => s.MostRecentFailure.Value < DateTime.UtcNow))
s => s.MostRecentFailure.Value <= DateTime.UtcNow))
)
);
}
@ -116,4 +116,4 @@ public void should_not_change_statuses_when_times_are_in_the_past()
}
}
}

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using FizzWare.NBuilder;
@ -60,7 +60,7 @@ public void should_set_initial_failure_when_its_in_the_future()
Mocker.GetMock<IIndexerStatusRepository>()
.Verify(v => v.UpdateMany(
It.Is<List<IndexerStatus>>(i => i.All(
s => s.InitialFailure.Value < DateTime.UtcNow))
s => s.InitialFailure.Value <= DateTime.UtcNow))
)
);
}
@ -85,7 +85,7 @@ public void should_set_most_recent_failure_when_its_in_the_future()
Mocker.GetMock<IIndexerStatusRepository>()
.Verify(v => v.UpdateMany(
It.Is<List<IndexerStatus>>(i => i.All(
s => s.MostRecentFailure.Value < DateTime.UtcNow))
s => s.MostRecentFailure.Value <= DateTime.UtcNow))
)
);
}
@ -116,4 +116,4 @@ public void should_not_change_statuses_when_times_are_in_the_past()
}
}
}