From c88b5ee946634c2a640974b24ce4aba0677c89dd Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 6 Aug 2013 22:54:50 -0700 Subject: [PATCH] fixed broken test. --- NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs | 6 ++---- NzbDrone.Core/Update/InstallUpdateService.cs | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs b/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs index aa9eae903..4d36befe2 100644 --- a/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs +++ b/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs @@ -103,10 +103,8 @@ namespace NzbDrone.Core.Test.UpdateTests { Subject.Execute(new ApplicationUpdateCommand()); - Mocker.GetMock().Verify( - c => c.Start(It.Is(p => - !string.IsNullOrWhiteSpace(p.FileName) && - p.Arguments == "12"))); + Mocker.GetMock() + .Verify(c => c.ShellExecute(It.IsAny(), "12", null, null), Times.Once()); } [Test] diff --git a/NzbDrone.Core/Update/InstallUpdateService.cs b/NzbDrone.Core/Update/InstallUpdateService.cs index 5a48968f6..0b25f8717 100644 --- a/NzbDrone.Core/Update/InstallUpdateService.cs +++ b/NzbDrone.Core/Update/InstallUpdateService.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics; using System.IO; using NLog; using NzbDrone.Common; @@ -71,7 +70,7 @@ namespace NzbDrone.Core.Update _diskProvider.MoveFolder(_appFolderInfo.GetUpdateClientFolder(), updateSandboxFolder); - _logger.Info("Starting update client"); + _logger.Info("Starting update client {0}", _appFolderInfo.GetUpdateClientExePath()); var process = _processProvider.ShellExecute(_appFolderInfo.GetUpdateClientExePath(), _processProvider.GetCurrentProcess().Id.ToString()); @@ -85,4 +84,4 @@ namespace NzbDrone.Core.Update } } } -} \ No newline at end of file +}