mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Service kills other instances on start.
This commit is contained in:
@@ -34,7 +34,7 @@ namespace NzbDrone.App.Test
|
||||
});
|
||||
|
||||
|
||||
Subject.EnforceSingleInstance();
|
||||
Subject.PreventStartIfAlreadyRunning();
|
||||
|
||||
|
||||
Mocker.GetMock<IBrowserService>().Verify(c => c.LaunchWebUI(), Times.Never());
|
||||
@@ -59,7 +59,7 @@ namespace NzbDrone.App.Test
|
||||
|
||||
|
||||
|
||||
Assert.Throws<TerminateApplicationException>(() => Subject.EnforceSingleInstance());
|
||||
Assert.Throws<TerminateApplicationException>(() => Subject.PreventStartIfAlreadyRunning());
|
||||
Mocker.GetMock<IBrowserService>().Verify(c => c.LaunchWebUI(), Times.Once());
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
@@ -83,7 +83,7 @@ namespace NzbDrone.App.Test
|
||||
|
||||
|
||||
|
||||
Assert.Throws<TerminateApplicationException>(() => Subject.EnforceSingleInstance());
|
||||
Assert.Throws<TerminateApplicationException>(() => Subject.PreventStartIfAlreadyRunning());
|
||||
Mocker.GetMock<IBrowserService>().Verify(c => c.LaunchWebUI(), Times.Once());
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user