Skip to content

Commit 8bf9699

Browse files
committed
Tests passing for the wrong reason
1 parent 4ee7d57 commit 8bf9699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NzbDrone.Core.Test/DecisionEngineTests/HistorySpecificationFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void should_return_true_if_latest_history_has_a_download_id()
101101
[Test]
102102
public void should_return_true_if_latest_history_item_is_older_than_twelve_hours()
103103
{
104-
GivenMostRecentForEpisode(FIRST_EPISODE_ID, string.Empty, _notupgradableQuality, DateTime.UtcNow.AddHours(-13), HistoryEventType.DownloadFailed);
104+
GivenMostRecentForEpisode(FIRST_EPISODE_ID, string.Empty, _notupgradableQuality, DateTime.UtcNow.AddHours(-13), HistoryEventType.Grabbed);
105105
_upgradeHistory.IsSatisfiedBy(_parseResultMulti, null).Accepted.Should().BeTrue();
106106
}
107107

@@ -171,8 +171,8 @@ public void should_not_be_upgradable_if_cutoff_already_met()
171171
[Test]
172172
public void should_return_false_if_latest_history_item_is_only_one_hour_old()
173173
{
174-
GivenMostRecentForEpisode(FIRST_EPISODE_ID, string.Empty, _notupgradableQuality, DateTime.UtcNow.AddHours(-1), HistoryEventType.DownloadFailed);
175-
_upgradeHistory.IsSatisfiedBy(_parseResultMulti, null).Accepted.Should().BeTrue();
174+
GivenMostRecentForEpisode(FIRST_EPISODE_ID, string.Empty, _notupgradableQuality, DateTime.UtcNow.AddHours(-1), HistoryEventType.Grabbed);
175+
_upgradeHistory.IsSatisfiedBy(_parseResultMulti, null).Accepted.Should().BeFalse();
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)