Unit tests don't start until after 10s of round time (#36907)

This commit is contained in:
Jordan Brown
2018-04-02 15:56:03 -04:00
committed by CitadelStationBot
parent 2d5874d292
commit 376eee917a

View File

@@ -55,11 +55,13 @@ GLOBAL_PROTECT(security_mode)
Master.sleep_offline_after_initializations = FALSE
SSticker.start_immediately = TRUE
CONFIG_SET(number/round_end_countdown, 0)
var/datum/callback/cb
#ifdef UNIT_TESTS
SSticker.OnRoundstart(CALLBACK(GLOBAL_PROC, /proc/RunUnitTests))
cb = CALLBACK(GLOBAL_PROC, /proc/RunUnitTests)
#else
SSticker.force_ending = TRUE
cb = VARSET_CALLBACK(SSticker, force_ending, TRUE)
#endif
SSticker.OnRoundstart(CALLBACK(GLOBAL_PROC, /proc/addtimer, cb, 10 SECONDS))
/world/proc/SetupExternalRSC()
#if (PRELOAD_RSC == 0)