From dc605232173a9f7d4caad68596e319d61740ba9c Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Wed, 6 Nov 2024 16:51:39 +0100 Subject: [PATCH] cleanup --- test/_testRunner.cfc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/_testRunner.cfc b/test/_testRunner.cfc index eb9fd5370e..f9ce93ae3d 100644 --- a/test/_testRunner.cfc +++ b/test/_testRunner.cfc @@ -1,5 +1,4 @@ component { - request._tick = getTickCount(); // track which request variables exist before running tests, used for cleanup between tests variables.requestKeys = ArrayToStruct( StructKeyArray( request ), true ); @@ -122,9 +121,10 @@ component { // always clean up the request scope between test suites for ( var rr in structKeyArray( request ) ){ - if ( !structKeyExists( variables.requestKeys, rr ) ) - systemOutput( "deleting request scope variable [#rr#]", true); + if ( !structKeyExists( variables.requestKeys, rr ) ){ + systemOutput( "deleting left over request scope variable after test [#rr#]", true); structDelete( request, rr ); + } } //mem("non_heap"); //mem("heap");