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

🪟 🐛 Fix test with potentially mismatching time values #21795

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

josephkmh
Copy link
Contributor

@josephkmh josephkmh commented Jan 24, 2023

What

In the test setup there are two subsequent calls to Date.now() that are not guaranteed to return the same millisecond. This test failed because they were off by a millisecond: https://github.com/airbytehq/airbyte-cloud/actions/runs/3996900752/jobs/6857563137#step:3:16508

I just adjusted the makeAttempt() setup slightly so there is only one call to Date.now()

@josephkmh josephkmh added the area/frontend Related to the Airbyte webapp label Jan 24, 2023
@josephkmh josephkmh requested a review from evantahler January 24, 2023 15:57
Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants