Skip to content

Siteprism hangs when used with timecop #388

@dkniffin

Description

@dkniffin

I've just discovered an issue with interactions between site_prism and timecop. It looks like this is a known issue (#88), which was closed (completely reasonably).

To describe the issue again here: If you are using timecop with Timecop.freeze somewhere in your code (either in the feature/system test, or in another test with leakage), Waiter.wait_until_true will hang because Time.now does not change.

This actually isn't a bug with Site Prism, but I just spent a few hours tracking this down, so I wanted to create an issue, to hopefully avoid this issue for others in the future. At the very least, I'm hoping this issue will come up in a Google search, but I'm also wondering if there's some documentation or messaging we could add that might help as well.

My two thoughts:

  1. We could put a bit of code in somewhere that checks for the presence of Timecop and if it's there, just output some logging that says something like "fyi, you're using timecop"
  2. We could add a "known issues" section to the readme listing this, so people can find it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions