fixed broken test.

pull/6/head
kay.one 12 years ago
parent 7ac6d9c1f4
commit c88b5ee946

@ -103,10 +103,8 @@ namespace NzbDrone.Core.Test.UpdateTests
{ {
Subject.Execute(new ApplicationUpdateCommand()); Subject.Execute(new ApplicationUpdateCommand());
Mocker.GetMock<IProcessProvider>().Verify( Mocker.GetMock<IProcessProvider>()
c => c.Start(It.Is<ProcessStartInfo>(p => .Verify(c => c.ShellExecute(It.IsAny<string>(), "12", null, null), Times.Once());
!string.IsNullOrWhiteSpace(p.FileName) &&
p.Arguments == "12")));
} }
[Test] [Test]

@ -1,5 +1,4 @@
using System; using System;
using System.Diagnostics;
using System.IO; using System.IO;
using NLog; using NLog;
using NzbDrone.Common; using NzbDrone.Common;
@ -71,7 +70,7 @@ namespace NzbDrone.Core.Update
_diskProvider.MoveFolder(_appFolderInfo.GetUpdateClientFolder(), _diskProvider.MoveFolder(_appFolderInfo.GetUpdateClientFolder(),
updateSandboxFolder); updateSandboxFolder);
_logger.Info("Starting update client"); _logger.Info("Starting update client {0}", _appFolderInfo.GetUpdateClientExePath());
var process = _processProvider.ShellExecute(_appFolderInfo.GetUpdateClientExePath(), _processProvider.GetCurrentProcess().Id.ToString()); var process = _processProvider.ShellExecute(_appFolderInfo.GetUpdateClientExePath(), _processProvider.GetCurrentProcess().Id.ToString());

Loading…
Cancel
Save