mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
Leave DD running after the watchdog test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user