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

Upgraded to http4s 0.20.0 + Fixed flaky failing test. #22

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

cmcmteixeira
Copy link
Contributor

No description provided.

GeneralMetrics().activeRequests.distribution().min shouldBe 0L
}

reporter.clear()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

as far as I could tell it doesn't seem to be used in this test at all!


val test = IO {
eventually(timeout(5 seconds)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Due to the way the test is setup, requests *> test the test is only run after all requests have completed therefore there's no need to use eventually.


reporter.clear()

GeneralMetrics().activeRequests.distribution().max should be > 1L
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Initial constraint was that it had to be =10 but it would some times fail
Bigger than 1 seems reasonable as it proves that one or more requests were active at the same time!

@dpsoft dpsoft merged commit d20ebea into kamon-io:master Apr 25, 2019
@dpsoft
Copy link
Contributor

dpsoft commented Apr 25, 2019

@cmcmteixeira done! Thanks for proposing this PR

@dpsoft
Copy link
Contributor

dpsoft commented May 5, 2019

stsatlantis pushed a commit to stsatlantis/kamon-http4s that referenced this pull request Apr 10, 2020
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.

None yet

2 participants