1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

Fixed: Don't allow pushed releases to bypass pending releases that recently expired

Closes #7725
This commit is contained in:
Mark McDowall
2025-03-23 18:11:24 -07:00
parent 83b2c9e97a
commit da29de4cfe
72 changed files with 632 additions and 369 deletions
@@ -45,7 +45,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
WithAvailableSpace(200);
WithSize(100);
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeTrue();
Subject.IsSatisfiedBy(_remoteEpisode, new()).Accepted.Should().BeTrue();
}
[Test]
@@ -55,7 +55,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
WithAvailableSpace(200);
WithSize(100);
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeTrue();
Subject.IsSatisfiedBy(_remoteEpisode, new()).Accepted.Should().BeTrue();
}
[Test]
@@ -65,7 +65,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
WithAvailableSpace(200);
WithSize(1000);
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeFalse();
Subject.IsSatisfiedBy(_remoteEpisode, new()).Accepted.Should().BeFalse();
}
[Test]
@@ -75,7 +75,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
WithAvailableSpace(200);
WithSize(100);
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeFalse();
Subject.IsSatisfiedBy(_remoteEpisode, new()).Accepted.Should().BeFalse();
}
[Test]
@@ -89,7 +89,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
WithAvailableSpace(200);
WithSize(100);
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeTrue();
Subject.IsSatisfiedBy(_remoteEpisode, new()).Accepted.Should().BeTrue();
}
[Test]
@@ -100,7 +100,7 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
Mocker.GetMock<IDiskProvider>().Setup(s => s.GetAvailableSpace(It.IsAny<string>())).Throws<DirectoryNotFoundException>();
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeTrue();
Subject.IsSatisfiedBy(_remoteEpisode, new()).Accepted.Should().BeTrue();
}
}
}