Add some diagnostic messages for tests

This commit is contained in:
Jordan Dominion
2023-12-03 14:53:28 -05:00
parent 10188c782f
commit 69f4c7e0b6
@@ -763,7 +763,9 @@ namespace Tgstation.Server.Tests.Live.Instance
}, cancellationToken);
ValidateSessionId(ddStatus, true);
global::System.Console.WriteLine($"WATCHDOG TEST {instanceClient.Metadata.Id}: COMMENCE PROCESS SUSPEND FOR HEALTH CHECK DEATH PID {ourProcessHandler.Id}.");
ourProcessHandler.Suspend();
global::System.Console.WriteLine($"WATCHDOG TEST {instanceClient.Metadata.Id}: FINISH PROCESS SUSPEND FOR HEALTH CHECK DEATH. WAITING FOR LIFETIME {ourProcessHandler.Id}.");
await Task.WhenAny(ourProcessHandler.Lifetime, Task.Delay(TimeSpan.FromMinutes(2), cancellationToken));
Assert.IsTrue(ourProcessHandler.Lifetime.IsCompleted);