Fixed: Failing update test on Linux

pull/6/head
ta264 5 years ago
parent ea2e8e499d
commit 2284313d4d

@ -265,7 +265,7 @@ namespace NzbDrone.Core.Test.UpdateTests
public void should_log_error_when_app_data_is_child_of_startup_folder() public void should_log_error_when_app_data_is_child_of_startup_folder()
{ {
Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.StartUpFolder).Returns(@"C:\Lidarr".AsOsAgnostic); Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.StartUpFolder).Returns(@"C:\Lidarr".AsOsAgnostic);
Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.AppDataFolder).Returns(@"C:\LIdarr\AppData".AsOsAgnostic); Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.AppDataFolder).Returns(@"C:\Lidarr\AppData".AsOsAgnostic);
Assert.Throws<CommandFailedException>(() => Subject.Execute(new ApplicationUpdateCommand())); Assert.Throws<CommandFailedException>(() => Subject.Execute(new ApplicationUpdateCommand()));
ExceptionVerification.ExpectedErrors(1); ExceptionVerification.ExpectedErrors(1);

Loading…
Cancel
Save