Skip to content

Bad behavior with Timecop.freeze #25

@yovasx2

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

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