Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

This test is flaky because it uses the live clock. In addition, flaky does not help here because the state of the metric is effected by prior tests causing retries to fail and leading to overall test instability. I think it is better to recognize that we made a conscious choice to use java.lang.System.nanotime for efficiency but that makes this method not very testable.

@adamgfraser adamgfraser requested a review from vigoo February 28, 2023 07:27
@adamgfraser adamgfraser merged commit bea7543 into zio:series/2.x Feb 28, 2023
@adamgfraser adamgfraser deleted the observedurations branch February 28, 2023 12:25
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.

2 participants