Only expect channels while we can guarantee them

This commit is contained in:
Jordan Dominion
2023-07-08 13:01:24 -04:00
parent 009b851f31
commit 0b92f631ba
2 changed files with 10 additions and 3 deletions
+4 -3
View File
@@ -11,9 +11,10 @@
dab()
TgsNew(new /datum/tgs_event_handler/impl, TGS_SECURITY_SAFE)
var/list/channels = TgsChatChannelInfo()
if(!length(channels))
FailTest("Expected some chat channels!")
if(params["expect_chat_channels"])
var/list/channels = TgsChatChannelInfo()
if(!length(channels))
FailTest("Expected some chat channels!")
StartAsync()
@@ -107,6 +107,7 @@ namespace Tgstation.Server.Tests.Live.Instance
Port = ddPort,
MapThreads = 2,
LogOutput = false,
AdditionalParameters = "expect_chat_channels=1"
}, cancellationToken),
CheckByondVersions(),
ApiAssert.ThrowsException<ApiConflictException>(() => instanceClient.DreamDaemon.Update(new DreamDaemonRequest
@@ -138,6 +139,11 @@ namespace Tgstation.Server.Tests.Live.Instance
await InteropTestsForLongRunningDme(cancellationToken);
await instanceClient.DreamDaemon.Update(new DreamDaemonRequest
{
AdditionalParameters = String.Empty
}, cancellationToken);
// for the restart staging tests
await DeployTestDme("LongRunning/long_running_test", DreamDaemonSecurity.Trusted, true, cancellationToken);