Skip to content

Commit c14db66

Browse files
committed
Prevent Request.current_id test state leakage
1 parent 0c2c53d commit c14db66

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
end
184184

185185
VCAP::CloudController::SecurityContext.clear
186+
VCAP::Request.current_id = nil
186187
allow_any_instance_of(VCAP::CloudController::UaaTokenDecoder).to receive(:uaa_issuer).and_return(UAAIssuer::ISSUER)
187188

188189
mock_redis = MockRedis.new

0 commit comments

Comments
 (0)