|
|
|
@ -90,7 +90,7 @@ namespace NzbDrone.Core.Test.ThingiProviderTests
|
|
|
|
|
var status = Subject.GetBlockedProviders().FirstOrDefault();
|
|
|
|
|
status.Should().NotBeNull();
|
|
|
|
|
status.DisabledTill.Should().HaveValue();
|
|
|
|
|
status.DisabledTill.Value.Should().BeCloseTo(_epoch + TimeSpan.FromMinutes(5), 500);
|
|
|
|
|
status.DisabledTill.Value.Should().BeCloseTo(_epoch + TimeSpan.FromMinutes(1), 500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -133,7 +133,7 @@ namespace NzbDrone.Core.Test.ThingiProviderTests
|
|
|
|
|
var status = Subject.GetBlockedProviders().FirstOrDefault();
|
|
|
|
|
status.Should().NotBeNull();
|
|
|
|
|
status.DisabledTill.Should().HaveValue();
|
|
|
|
|
status.DisabledTill.Value.Should().BeCloseTo(_epoch + TimeSpan.FromMinutes(15), 500);
|
|
|
|
|
status.DisabledTill.Value.Should().BeCloseTo(_epoch + TimeSpan.FromMinutes(5), 500);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -160,7 +160,7 @@ namespace NzbDrone.Core.Test.ThingiProviderTests
|
|
|
|
|
status.Should().NotBeNull();
|
|
|
|
|
|
|
|
|
|
origStatus.EscalationLevel.Should().Be(3);
|
|
|
|
|
status.DisabledTill.Should().BeCloseTo(_epoch + TimeSpan.FromMinutes(5), 500);
|
|
|
|
|
status.DisabledTill.Should().BeCloseTo(_epoch + TimeSpan.FromMinutes(1), 500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|