From 13128abe73125ecf8501a368164a146e8e67a2d1 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Wed, 25 Oct 2023 02:54:50 -0400 Subject: [PATCH] Fix overeager required process killing --- tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs b/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs index 5d0cd5fa6f..eb9c77047b 100644 --- a/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs +++ b/tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs @@ -1137,9 +1137,11 @@ namespace Tgstation.Server.Tests.Live.Instance Assert.AreEqual(ddPort, daemonStatus.CurrentPort); // Try killing the DD process to ensure it gets set to the restoring state + bool firstTime = true; do { - KillDD(true); + KillDD(firstTime); + firstTime = false; await Task.Delay(TimeSpan.FromSeconds(1), cancellationToken); daemonStatus = await instanceClient.DreamDaemon.Read(cancellationToken); }