Skip to content

Commit bc0c734

Browse files
committed
[tests] Fix threading issue with parallel testing with non-threadsafe rspec mocks
1 parent 8b0a06f commit bc0c734

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/spec/ruby/rack/application_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ def createRackServletWrapper(runtime, rackup, filename)
794794
end
795795

796796
it "initializes initial runtimes in paralel (with wait set to false)" do
797+
@factory = double("factory (non-tracking)").as_null_object
797798
allow(@factory).to receive(:init)
798799
allow(@factory).to receive(:newApplication) do
799800
app = double "app"

0 commit comments

Comments
 (0)