mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Failing test and some flaky tests.
Co-Authored-By: taloth <taloth@users.noreply.github.com>
This commit is contained in:
parent
4c74f97153
commit
902036fbdb
2 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Mono.EnvironmentInfo;
|
using NzbDrone.Mono.EnvironmentInfo;
|
||||||
|
@ -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);
|
||||||
|
if (Subject.Version.Major == 4)
|
||||||
|
{
|
||||||
Subject.Version.Minor.Should().BeOneOf(0, 5, 6);
|
Subject.Version.Minor.Should().BeOneOf(0, 5, 6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue