Fix basic watchdog tests

This commit is contained in:
Jordan Dominion
2023-11-19 19:37:02 -05:00
parent 6967d9f4df
commit 84c5359af7
@@ -1280,8 +1280,8 @@ namespace Tgstation.Server.Tests.Live
// uncomment to force this test to run with DummyChatProviders
// missingChatVarsCount = TotalChatVars;
// uncomment to force this test to run with pasic watchdog
// Environment.SetEnvironmentVariable("General__UseBasicWatchdog", "true");
// uncomment to force this test to run with basic watchdog
Environment.SetEnvironmentVariable("General__UseBasicWatchdog", "true");
if (missingChatVarsCount != 0)
{
@@ -1586,7 +1586,7 @@ namespace Tgstation.Server.Tests.Live
Assert.AreEqual(connectedChannelCount, topicRequestResult.FloatData.Value);
dd = await WatchdogTest.TellWorldToReboot2(instanceClient, WatchdogTest.StaticTopicClient, mainDDPort, false, cancellationToken);
dd = await WatchdogTest.TellWorldToReboot2(instanceClient, WatchdogTest.StaticTopicClient, mainDDPort, true, cancellationToken);
Assert.AreEqual(WatchdogStatus.Online, dd.Status.Value); // if this assert fails, you likely have to crack open the debugger and read test_fail_reason.txt manually
Assert.IsNull(dd.StagedCompileJob);
@@ -1655,7 +1655,7 @@ namespace Tgstation.Server.Tests.Live
Assert.AreEqual(dd.StagedCompileJob.Job.Id, compileJob.Id);
expectedCompileJobId = compileJob.Id.Value;
dd = await wdt.TellWorldToReboot(false, cancellationToken);
dd = await wdt.TellWorldToReboot(server.UsingBasicWatchdog, cancellationToken);
Assert.AreEqual(dd.ActiveCompileJob.Job.Id, expectedCompileJobId);
Assert.AreEqual(WatchdogStatus.Online, dd.Status.Value);