Leave DD running after the watchdog test

This commit is contained in:
Jordan Brown
2020-05-05 14:45:25 -04:00
parent c0a3153a24
commit a508de6b64
@@ -39,6 +39,8 @@ namespace Tgstation.Server.Tests.Instance
await RunBasicTest(cancellationToken);
await RunLongRunningTestThenUpdate(cancellationToken);
await RunLongRunningTestThenUpdateWithByondVersionSwitch(cancellationToken);
await StartAndLeaveRunning(cancellationToken);
}
async Task RunBasicTest(CancellationToken cancellationToken)
@@ -125,7 +127,7 @@ namespace Tgstation.Server.Tests.Instance
var daemonStatus = await DeployTestDme(DmeName, DreamDaemonSecurity.Safe, cancellationToken);
await WaitForJob(startJob, 10, false, cancellationToken);
await WaitForJob(startJob, 40, false, cancellationToken);
Assert.IsTrue(daemonStatus.Running.Value);
Assert.IsNotNull(daemonStatus.ActiveCompileJob);
@@ -146,6 +148,13 @@ namespace Tgstation.Server.Tests.Instance
Assert.IsFalse(daemonStatus.Running.Value);
}
async Task StartAndLeaveRunning(CancellationToken cancellationToken)
{
var startJob = await instanceClient.DreamDaemon.Start(cancellationToken).ConfigureAwait(false);
await WaitForJob(startJob, 40, false, cancellationToken);
}
async Task TellWorldToReboot(CancellationToken cancellationToken)
{
//we've wired long_running_test to reboot if its reboot mode is changed TO normal