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

Improve async test checking KPI metrics #3347

Merged
merged 1 commit into from
Sep 2, 2021
Merged

Improve async test checking KPI metrics #3347

merged 1 commit into from
Sep 2, 2021

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Sep 1, 2021

Resolves #3269

The original test assumed that the KPI inflight metric would be updated before the response was available to the test client. While this is usually true, occasionally thread scheduling would allow the response to become available before the metric was updated.

This PR enhances the test so the test client and the resource collaborate so we can be sure the metric has been updated on the server side before the client retrieves it and checks it.

@tjquinno tjquinno requested a review from spericas September 1, 2021 01:23
@tjquinno tjquinno self-assigned this Sep 1, 2021
Copy link
Member

@spericas spericas left a comment

Choose a reason for hiding this comment

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

LGTM

@tjquinno tjquinno merged commit ebf798d into helidon-io:master Sep 2, 2021
@tjquinno tjquinno deleted the async-test-bug branch September 2, 2021 14:17
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.

Intermittent test failure: metrics with async requests
2 participants