Fix watchdog tests

This commit is contained in:
Jordan Brown
2020-05-07 16:23:42 -04:00
parent 335a3df061
commit e27c8fed3d
@@ -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)