Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad behavior with Timecop.freeze #25

Open
yovasx2 opened this issue Aug 13, 2019 · 0 comments
Open

Bad behavior with Timecop.freeze #25

yovasx2 opened this issue Aug 13, 2019 · 0 comments

Comments

@yovasx2
Copy link

yovasx2 commented Aug 13, 2019

If you use Timecop gem in the next way, you never get the Timeout::Error exception

Timecop.freeze
SystemTimer.timeout 1 do
sleep
end

A work around is:

  • Timecop.return
  • Timecop.freeze do
    end

https://github.com/travisjeffery/timecop#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant