Skip to content

Bad behavior with Timecop.freeze #25

Description

@yovasx2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions