mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-19 07:52:33 +02:00
Try to fix service test
This commit is contained in:
parent
8799da55d3
commit
26409c9d36
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
using System.ServiceProcess;
|
using System.ServiceProcess;
|
||||||
|
using System.Threading;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
@ -72,6 +73,7 @@ public void Service_should_be_installed_and_then_uninstalled()
|
|||||||
Subject.Install(TEMP_SERVICE_NAME);
|
Subject.Install(TEMP_SERVICE_NAME);
|
||||||
Subject.ServiceExist(TEMP_SERVICE_NAME).Should().BeTrue();
|
Subject.ServiceExist(TEMP_SERVICE_NAME).Should().BeTrue();
|
||||||
Subject.Uninstall(TEMP_SERVICE_NAME);
|
Subject.Uninstall(TEMP_SERVICE_NAME);
|
||||||
|
Thread.Sleep(2000);
|
||||||
Subject.ServiceExist(TEMP_SERVICE_NAME).Should().BeFalse();
|
Subject.ServiceExist(TEMP_SERVICE_NAME).Should().BeFalse();
|
||||||
|
|
||||||
ExceptionVerification.ExpectedWarns(1);
|
ExceptionVerification.ExpectedWarns(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user