mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 09:21:57 +00:00
Fixed: Update Test Fails Due to Throw Elimination
This commit is contained in:
parent
01f2f754ea
commit
2af273a4a1
1 changed files with 4 additions and 3 deletions
|
@ -92,9 +92,10 @@ public void should_not_update_if_inside_docker()
|
|||
{
|
||||
Mocker.GetMock<IOsInfo>().Setup(x => x.IsDocker).Returns(true);
|
||||
|
||||
Subject.Invoking(x => x.Execute(new ApplicationUpdateCommand()))
|
||||
.Should().Throw<CommandFailedException>()
|
||||
.WithMessage("Updating is disabled inside a docker container. Please update the container image.");
|
||||
Subject.Execute(new ApplicationUpdateCommand());
|
||||
|
||||
Mocker.GetMock<IProcessProvider>()
|
||||
.Verify(c => c.Start(It.IsAny<string>(), It.Is<string>(s => s.StartsWith("12")), null, null, null), Times.Never());
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Reference in a new issue