rspec-wait icon indicating copy to clipboard operation
rspec-wait copied to clipboard

use a smaller Timeout.timeout block

Open rickhull opened this issue 7 years ago • 0 comments

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.

rickhull avatar Nov 19 '17 22:11 rickhull