From b42b35d79eea46af547878b124133a79458c808e Mon Sep 17 00:00:00 2001 From: iisaev Date: Thu, 29 Oct 2026 13:21:34 +0100 Subject: [PATCH] Quit test drivers through ApplicationExit Drivers finish through ApplicationExit.Quit so engine mods complete their asynchronous cleanup before the engine shuts down; failure codes are kept. --- test_suites/site_shots/src/SiteShotsDriver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_suites/site_shots/src/SiteShotsDriver.cs b/test_suites/site_shots/src/SiteShotsDriver.cs index f7895a4..477eac1 100644 --- a/test_suites/site_shots/src/SiteShotsDriver.cs +++ b/test_suites/site_shots/src/SiteShotsDriver.cs @@ -266,7 +266,7 @@ namespace Cthangover.Mods.CthangoverGame.Tests { step = -1; GameLogger.Log("TEST", $"[TEST_RESULT] name=site_shots passed={passed} failed={failures.Count}"); - GetTree().Quit(failures.Count == 0 ? 0 : 1); + Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failures.Count == 0 ? 0 : 1); } } }