mirror of
https://github.com/Sonarr/Sonarr
synced 2026-01-27 09:53:03 +01:00
Fixed flaky test.
This commit is contained in:
parent
b48eaa7fd3
commit
f10174da37
2 changed files with 5 additions and 5 deletions
|
|
@ -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))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
@ -116,4 +116,4 @@ public void should_not_change_statuses_when_times_are_in_the_past()
|
|||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
|||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue