rspec-wait
rspec-wait copied to clipboard
use a smaller Timeout.timeout block
I'm not sure if this is helpful, but some folks in #ruby on freenode IRC were noticing that, with rspec-wait, Timeout.timeout
was failing to raise Timeout::Error in a timely manner for certain versions of ruby between v2.2 and v2.3.x -- i.e. some kind of bug having to do with concurrency, Ruby internals, and the very concept of how Timeout.timeout
operates.
I noticed that it was possible to contain less code within the Timeout.timeout
block, so I made this commit so they could try and see if their bug goes away. All tests pass.