Skip to content

Commit

Permalink
Avoid race in abort_on_exception spec
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Dec 15, 2016
1 parent 0156fc5 commit f405ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/core/thread/abort_on_exception_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
lambda do
ThreadSpecs.state = :run
# Wait for the main thread to be interrupted
Thread.pass while @thread.alive?
sleep
end.should raise_error(RuntimeError, "Thread#abort_on_exception= specs")

ScratchPad << :after
Expand Down

0 comments on commit f405ad0

Please sign in to comment.