Skip to content

Commit 0e0c6e0

Browse files
committed
make sure mock context is scoped after reset to ensure live headers are not sent
1 parent f9441c3 commit 0e0c6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/testing/BaseTestCase.cfc

+3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ component extends="testbox.system.compat.framework.TestCase" accessors="true" {
143143
}
144144

145145
structDelete( request, "_lastInvalidEvent" );
146+
147+
// make sure all references to the request context are using the MockContext
148+
getRequestContext();
146149
}
147150
}
148151

0 commit comments

Comments
 (0)