mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-15 10:03:02 +01:00
Fix watchdog tests
This commit is contained in:
@@ -180,10 +180,20 @@ namespace Tgstation.Server.Tests.Instance
|
||||
ReceiveTimeout = 5000
|
||||
});
|
||||
|
||||
var result = await bts.SendTopic(IPAddress.Loopback, "tgs_integration_test_special_tactics=1", 1337, cancellationToken);
|
||||
Assert.AreEqual("ack", result);
|
||||
try
|
||||
{
|
||||
var result = await bts.SendTopic(IPAddress.Loopback, "tgs_integration_test_special_tactics=1", 1337, cancellationToken);
|
||||
Assert.AreEqual("ack", result.StringData);
|
||||
|
||||
await Task.Delay(7000, cancellationToken);
|
||||
await Task.Delay(7000, cancellationToken);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
async Task<DreamDaemon> DeployTestDme(string dmeName, DreamDaemonSecurity deploymentSecurity, CancellationToken cancellationToken)
|
||||
|
||||
Reference in New Issue
Block a user