-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
exporters/stdout TestStdoutTimestamp test failure #1571
Comments
We're running into the same issue in #1559 too: tests flaking because they assume that a nonzero amount of time elapses. There we decided to add artificial delays in the test to make the behavior predictable. |
Ensure the test condition is valid by introducing minimal sleep durations before and after a timestamp is measured. Resolves open-telemetry#1571
Cool, sounds like we are going to be consistent in a solution 👍. I've taken the same approach in the linked PR. |
* Fix stdout TestStdoutTimestamp failure with sleep Ensure the test condition is valid by introducing minimal sleep durations before and after a timestamp is measured. Resolves #1571 * Add changes to changelog Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
* Fix stdout TestStdoutTimestamp failure with sleep Ensure the test condition is valid by introducing minimal sleep durations before and after a timestamp is measured. Resolves open-telemetry#1571 * Add changes to changelog Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
This test seems to consistently be failing for Windows testing using Go 1.14 and 1.15:
https://github.com/open-telemetry/opentelemetry-go/runs/1962753557?check_suite_focus=true
Looking at the test ...
opentelemetry-go/exporters/stdout/metric_test.go
Lines 78 to 124 in b94cd4b
Proposals
The text was updated successfully, but these errors were encountered: