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

sidekiq tests broke because of time-related bug in test #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cpm
Copy link

@cpm cpm commented Oct 4, 2020

The Sidekiq test that was making sure delay_until was working properly was queueing at a hardcoded 2020-01-01.

Sidekiq doesn't treat the job as a scheduled job if the scheduled time requested is in the past. This was causing an exception in the test.

This PR adjusts the test to always use a date in the future.

…ure. the hardcoded time specified is now in the past, so the test broke.
@Tengoot Tengoot closed this Oct 6, 2020
@Tengoot Tengoot reopened this Oct 6, 2020
@Marahin
Copy link
Contributor

Marahin commented Oct 6, 2020

Hi,

good catch :) I must say that personally I adore those kind of issues.

Looks solid from my perspective.

@Marahin Marahin requested a review from a team October 6, 2020 12:11
@Marahin Marahin requested a review from a team October 6, 2020 12:11
Copy link

@pstrzalk pstrzalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The future is now 😄

@cpm
Copy link
Author

cpm commented Oct 28, 2020

What's the process for getting merged in? Curious just because this has been sitting approved for a few weeks now. :)

@cpm
Copy link
Author

cpm commented Apr 27, 2021

Hi! This was approved 6 months ago. Should I be doing anything specific to move this forward?

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

Successfully merging this pull request may close these issues.

4 participants