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(e2e): fix "eventually" helper in e2e tests #3917

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Sep 9, 2022

Description

Fix the eventually helper function.

Testing

npx cucumber-js --fail-fast -t @queues --format json:cucumber-report.json

@kuhe kuhe requested a review from a team as a code owner September 9, 2022 17:34
@@ -40,16 +40,15 @@ module.exports = {
if (!options.backoff) options.backoff = 500;
if (!options.maxTime) options.maxTime = 5;

const delay = options.delay;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This function has likely been broken for a very long time. delay += options.backoff; could never have worked with const delay. It's likely the AWS.util.date.getDate() call did not return a reasonable value and the retry did not happen, meaning previously passing e2e tests always succeeded on the first try of the next.condition.

Copy link
Member

@trivikr trivikr Sep 9, 2022

Choose a reason for hiding this comment

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

The AWS.util.date.getDate() is a remnant from AWS SDK for JavaScript (v2), which wouldn't have worked in v3. We would have missed removing it when migrating integration tests.

Thanks for catching it!

@kuhe kuhe merged commit fac9c18 into aws:main Sep 9, 2022
@kuhe kuhe deleted the fix/e2e branch September 9, 2022 17:39
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants