mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 15:40:56 +01:00
Add some diagnostic messages for tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user