Skip to content

Issue with cassandra ruby driver, timecop and ione #52

@alexggordon

Description

@alexggordon

Hello @iconara!

Figured this would be as good of a spot as any to ask this question, but we discovered an issue when using ione with the ruby cassandra driver and timecop. Specifically, this is the situation.

  1. Configure and launch a cassandra server locally.
  2. Configure an rspec suite for integration tests against the cassandra server.
  3. Ensure the cassandra idle_timeout is set to the default value (60)
  4. Adjust time using timecop to sometime in the future past 60 seconds.

Result:
The test will fail with a cassandra timeout error, as the scheduled ione timer for the idle_timeout has not been rescheduled, and the on_value timeout function has been called.

Given this, I could see an argument for either calling this a cassandra ruby driver issue, or a ione issue--if you'd like me to report this somewhere else, please let me know.

However, my question is: What is the best way to utilize timecop with ione?

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