Skip to content

Commit

Permalink
Replace an occurrence of sleep in Signal#trap specs
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Aug 3, 2016
1 parent 067e03c commit b1e6057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/core/signal/trap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
it "accepts a block in place of a proc/command argument" do
Signal.trap(:HUP) { ScratchPad.record :block_trap }
Process.kill :HUP, Process.pid
sleep 0.5
Thread.pass until ScratchPad.recorded
ScratchPad.recorded.should == :block_trap
end

Expand Down

0 comments on commit b1e6057

Please sign in to comment.