From 2314d3e15c38ac16d4528e1c4fc2dec74b0d152c Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 23 Oct 2018 15:15:19 -0400 Subject: [PATCH] Move the watchdog verify --- tests/Tgstation.Server.Host.Service.Tests/TestServerService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Tgstation.Server.Host.Service.Tests/TestServerService.cs b/tests/Tgstation.Server.Host.Service.Tests/TestServerService.cs index 4cbfc16d8e..2ded32628b 100644 --- a/tests/Tgstation.Server.Host.Service.Tests/TestServerService.cs +++ b/tests/Tgstation.Server.Host.Service.Tests/TestServerService.cs @@ -43,12 +43,12 @@ namespace Tgstation.Server.Host.Service.Tests using (var service = new ServerService(mockWatchdogFactory.Object, mockLoggerFactory, default)) { onStart.Invoke(service, new object[] { args }); + mockWatchdog.VerifyAll(); Assert.IsFalse(cancellationToken.IsCancellationRequested); onStop.Invoke(service, Array.Empty()); Assert.IsTrue(cancellationToken.IsCancellationRequested); - mockWatchdog.VerifyAll(); } mockWatchdogFactory.VerifyAll();