Fixed failing test and some flaky tests.
This commit is contained in:
parent
e607a67f00
commit
52588509ed
|
@ -35,7 +35,7 @@ namespace NzbDrone.Core.Test.Housekeeping.Housekeepers
|
||||||
Mocker.GetMock<IDownloadClientStatusRepository>()
|
Mocker.GetMock<IDownloadClientStatusRepository>()
|
||||||
.Verify(v => v.UpdateMany(
|
.Verify(v => v.UpdateMany(
|
||||||
It.Is<List<DownloadClientStatus>>(i => i.All(
|
It.Is<List<DownloadClientStatus>>(i => i.All(
|
||||||
s => s.DisabledTill.Value < DateTime.UtcNow.AddMinutes(disabledTillTime)))
|
s => s.DisabledTill.Value <= DateTime.UtcNow.AddMinutes(disabledTillTime)))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,6 +137,9 @@ namespace NzbDrone.Core.Test.Messaging.Commands
|
||||||
QueueAndWaitForExecution(commandModel);
|
QueueAndWaitForExecution(commandModel);
|
||||||
|
|
||||||
VerifyEventPublished<CommandExecutedEvent>();
|
VerifyEventPublished<CommandExecutedEvent>();
|
||||||
|
|
||||||
|
Thread.Sleep(10);
|
||||||
|
|
||||||
ExceptionVerification.ExpectedErrors(1);
|
ExceptionVerification.ExpectedErrors(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -294,7 +294,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests
|
||||||
|
|
||||||
Mocker.GetMock<IEpisodeService>()
|
Mocker.GetMock<IEpisodeService>()
|
||||||
.Setup(s => s.FindEpisodesBySceneNumbering(It.IsAny<int>(), seasonNumber, It.IsAny<int>()))
|
.Setup(s => s.FindEpisodesBySceneNumbering(It.IsAny<int>(), seasonNumber, It.IsAny<int>()))
|
||||||
.Returns(Builder<Episode>.CreateListOfSize(0).Build().ToList());
|
.Returns(new List<Episode>());
|
||||||
|
|
||||||
Subject.GetEpisodes(_parsedEpisodeInfo, _series, true, null);
|
Subject.GetEpisodes(_parsedEpisodeInfo, _series, true, null);
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,11 @@ namespace NzbDrone.Mono.Test.EnvironmentInfo
|
||||||
[Test]
|
[Test]
|
||||||
public void should_get_framework_version()
|
public void should_get_framework_version()
|
||||||
{
|
{
|
||||||
Subject.Version.Major.Should().Be(4);
|
Subject.Version.Major.Should().BeOneOf(4, 5);
|
||||||
Subject.Version.Minor.Should().BeOneOf(0, 5, 6);
|
if (Subject.Version.Major == 4)
|
||||||
|
{
|
||||||
|
Subject.Version.Minor.Should().BeOneOf(0, 5, 6);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue