Skip to content

Commit ea85dde

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spec/ruby/rack/application_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,8 @@ def createRackServletWrapper(runtime, rackup, filename)
793793
expect(millis).to be >= 90 # waited about ~ 0.10 secs
794794
end
795795

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

0 commit comments

Comments
 (0)