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

Stabilise TestGatherMetrics_EndToEnd #961

Conversation

james-bebbington
Copy link
Member

@james-bebbington james-bebbington commented May 13, 2020

Link to tracking Issue:
#958

Description:
The hostmetricsreceiver.TestGatherMetrics_EndToEnd test could intermittently fail if all metrics had not been generated after 80ms. This PR changes the test to use require.Eventually and wait until we receive at least one set of all the expected metrics.

Note #952 is also currently open which refactors the host metrics logic quite a lot so that there is only a single ticker running for this test, and we can terminate as soon as any metrics are received (see this line). If that PR is merged first, this PR doesn't need to be merged.

…cs have been generated, and gracefully handle getting repeat metrics
@flands flands added this to In progress in Triaged via automation May 13, 2020
@james-bebbington
Copy link
Member Author

Superseded by #952

Triaged automation moved this from In progress to Done May 14, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
The code example was rendering oddly in github.com because the first
line had 4 spaces instead of tabs like the rest of the example. Fix
this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Triaged
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants