mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-20 12:33:00 +01:00
Only expect channels while we can guarantee them
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user