From 2af273a4a1a238e56f980e269aa7d64bcd418117 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 3 Oct 2019 20:48:34 -0400 Subject: [PATCH] Fixed: Update Test Fails Due to Throw Elimination --- src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs b/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs index bd04a2b51..5345cd691 100644 --- a/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs +++ b/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs @@ -92,9 +92,10 @@ namespace NzbDrone.Core.Test.UpdateTests { Mocker.GetMock().Setup(x => x.IsDocker).Returns(true); - Subject.Invoking(x => x.Execute(new ApplicationUpdateCommand())) - .Should().Throw() - .WithMessage("Updating is disabled inside a docker container. Please update the container image."); + Subject.Execute(new ApplicationUpdateCommand()); + + Mocker.GetMock() + .Verify(c => c.Start(It.IsAny(), It.Is(s => s.StartsWith("12")), null, null, null), Times.Never()); } [Test]