Skip to content

Commit e48e3a7

Browse files
authored
Prevent Request.current_id test state leakage (#4808)
1 parent 49902f6 commit e48e3a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
end
180180

181181
VCAP::CloudController::SecurityContext.clear
182+
VCAP::Request.current_id = nil
182183
allow_any_instance_of(VCAP::CloudController::UaaTokenDecoder).to receive(:uaa_issuer).and_return(UAAIssuer::ISSUER)
183184

184185
mock_redis = MockRedis.new

0 commit comments

Comments
 (0)