From 58d7f975cb5dcbffc826605436a2d49e53c5e8c7 Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Mon, 23 Sep 2024 15:25:54 +0200 Subject: [PATCH] COLDBOX-1294 #resolve Call `reset()` when testing and unloadColdbox is true in the `afterTests()` to make sure the reset procedures are done, not only the shutdown. --- system/testing/BaseTestCase.cfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/testing/BaseTestCase.cfc b/system/testing/BaseTestCase.cfc index 8f3cfff8c..398861831 100755 --- a/system/testing/BaseTestCase.cfc +++ b/system/testing/BaseTestCase.cfc @@ -146,7 +146,7 @@ component extends="testbox.system.compat.framework.TestCase" accessors="true" { */ function afterTests(){ if ( this.unLoadColdbox ) { - getColdBoxVirtualApp().shutdown(); + reset(); } }