Only expect channels while we can guarantee them

This commit is contained in:
Jordan Dominion
2023-07-08 13:34:58 -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()