From 039c68d4486390feeaf1b5824d068f10c5aa0e78 Mon Sep 17 00:00:00 2001 From: iisaev Date: Thu, 29 Oct 2026 13:21:38 +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. --- src/PropertyPatchesTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PropertyPatchesTest.cs b/src/PropertyPatchesTest.cs index 49c54ef..2d627ff 100644 --- a/src/PropertyPatchesTest.cs +++ b/src/PropertyPatchesTest.cs @@ -146,7 +146,7 @@ namespace Mods.TestDefaultsAndPatches { done = true; GameLogger.Log("TEST", $"[TEST_RESULT] name={ResultName} passed={passed} failed={failed}"); - GetTree().Quit(failed == 0 ? 0 : 1); + Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failed == 0 ? 0 : 1); } } }