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

sourcemap: fix flaky test #5581

Merged
merged 1 commit into from
Jun 30, 2021
Merged

sourcemap: fix flaky test #5581

merged 1 commit into from
Jun 30, 2021

Conversation

axw
Copy link
Member

@axw axw commented Jun 30, 2021

Motivation/summary

The test was failing because the dial attempt would
sometimes timeout and return a different error.

Change the test to first wait for the request to be
received by the server, and then check that context
cancellation is honoured. We do this by explicitly
cancelling the context, rather than using a timeout.

Closes #5549

The test was failing because the dial attempt would
sometimes timeout and return a different error.

Change the test to first wait for the request to be
received by the server, and then check that context
cancellation is honoured. We do this by explicitly
cancelling the context, rather than using a timeout.
@axw axw added the v7.14.0 label Jun 30, 2021
@axw axw requested a review from stuartnelson3 June 30, 2021 02:18
@apmmachine
Copy link
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #5581 opened

  • Start Time: 2021-06-30T02:18:25.595+0000

  • Duration: 39 min 58 sec

  • Commit: acadc73

Test stats 🧪

Test Results
Failed 0
Passed 6111
Skipped 105
Total 6216

Trends 🧪

Image of Build Times

Image of Tests

@axw axw merged commit 062cb9c into elastic:master Jun 30, 2021
@axw axw deleted the sourcemap-fix-flake branch June 30, 2021 09:26
mergify bot pushed a commit that referenced this pull request Jun 30, 2021
The test was failing because the dial attempt would
sometimes timeout and return a different error.

Change the test to first wait for the request to be
received by the server, and then check that context
cancellation is honoured. We do this by explicitly
cancelling the context, rather than using a timeout.

(cherry picked from commit 062cb9c)
axw added a commit that referenced this pull request Jun 30, 2021
The test was failing because the dial attempt would
sometimes timeout and return a different error.

Change the test to first wait for the request to be
received by the server, and then check that context
cancellation is honoured. We do this by explicitly
cancelling the context, rather than using a timeout.

(cherry picked from commit 062cb9c)

Co-authored-by: Andrew Wilkins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sourcemap.TestFetchTimeout is flaky
3 participants