-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[connector/spanmetrics] Unit test failures #33438
Labels
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This was referenced Jun 10, 2024
Removing |
dmitryax
pushed a commit
that referenced
this issue
Jul 2, 2024
…es on timing (#33443) **Description:** <Describe what has changed.> Tries fixing some flaky unit tests that relied on `time.Now()` always returning a higher value than the previous call The solution is reading the current time from a `clock.Clock` interface. The test relying on ever-increasing `Now()` values uses a mock that always returns an increasing value. **Link to tracking Issue:** #33438 **Testing:** - Ran the component locally to verify the ticker still flushes after the configured duration passes Closes #33438
cparkins
pushed a commit
to AmadeusITGroup/opentelemetry-collector-contrib
that referenced
this issue
Jul 11, 2024
…es on timing (open-telemetry#33443) **Description:** <Describe what has changed.> Tries fixing some flaky unit tests that relied on `time.Now()` always returning a higher value than the previous call The solution is reading the current time from a `clock.Clock` interface. The test relying on ever-increasing `Now()` values uses a mock that always returns an increasing value. **Link to tracking Issue:** open-telemetry#33438 **Testing:** - Ran the component locally to verify the ticker still flushes after the configured duration passes Closes open-telemetry#33438
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
connector/spanmetrics
Describe the issue you're reporting
Failing CI/CD link
The failure occurred on Windows, so it may be Windows-related. Looks like these tests were just added a few days ago in #31780.
Failure output:
The text was updated successfully, but these errors were encountered: