mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-14 01:23:02 +01:00
Fix basic watchdog tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user