Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Nov 6, 2024
1 parent d8d4aec commit dc60523
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/_testRunner.cfc
Original file line number Diff line number Diff line change
@@ -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 );

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit dc60523

Please sign in to comment.