From 26409c9d36e709e7322d14dc89b3965de8781b5a Mon Sep 17 00:00:00 2001 From: ta264 Date: Tue, 14 Jul 2020 20:36:46 +0100 Subject: [PATCH] Try to fix service test --- src/NzbDrone.Common.Test/ServiceProviderTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Common.Test/ServiceProviderTests.cs b/src/NzbDrone.Common.Test/ServiceProviderTests.cs index 99aafe627..d0a8f7b3a 100644 --- a/src/NzbDrone.Common.Test/ServiceProviderTests.cs +++ b/src/NzbDrone.Common.Test/ServiceProviderTests.cs @@ -1,6 +1,7 @@ using System; using System.Security.Principal; using System.ServiceProcess; +using System.Threading; using FluentAssertions; using NUnit.Framework; using NzbDrone.Common.EnvironmentInfo; @@ -72,6 +73,7 @@ namespace NzbDrone.Common.Test Subject.Install(TEMP_SERVICE_NAME); Subject.ServiceExist(TEMP_SERVICE_NAME).Should().BeTrue(); Subject.Uninstall(TEMP_SERVICE_NAME); + Thread.Sleep(2000); Subject.ServiceExist(TEMP_SERVICE_NAME).Should().BeFalse(); ExceptionVerification.ExpectedWarns(1);