Skip to content

Commit 070cc74

Browse files
committed
Fix spec to correctly wait for the thread to be waiting in the require lock
1 parent 6480cc0 commit 070cc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ruby/fixtures/code/concurrent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Thread.current[:in_concurrent_rb] = true
33

44
if t = Thread.current[:wait_for]
5-
Thread.pass until t.backtrace && t.backtrace.any? { |call| call.include? 'require' }
5+
Thread.pass until t.backtrace && t.backtrace.any? { |call| call.include? 'require' } && t.stop?
66
end
77

88
if Thread.current[:con_raise]

0 commit comments

Comments
 (0)