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

fix: Fix flaky test (testBlockingCache) on master/pr's #3121

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

epochcoder
Copy link
Contributor

This test has been failing sporadically on some CI runners.

  • Use more modern approach to shut down thread pool, awaitTermination (prevent infinite loop in case of failure)
  • Use assertJ so we can get the reason it failed if it does
  • Change to greaterThanOrEqualTo as this test is successful if the calls blocked on each other and we know that with (500ms * 2)

- Use more modern approach to shut down thread pool, `awaitTermination` (prevent infinite loop in case of failure)
- Use assertJ so we can get the reason it failed if it does
- Change to `greaterThanOrEqualTo` as this test is successful if the calls blocked on each other and we know that with (500ms * 2)
@coveralls
Copy link

Coverage Status

coverage: 87.167%. remained the same
when pulling efdb78a on epochcoder:fix/blocking-test-flaky
into e346c07 on mybatis:master.

@harawata harawata merged commit 5718c1a into mybatis:master Mar 28, 2024
19 checks passed
@harawata harawata self-assigned this Mar 28, 2024
@harawata
Copy link
Member

Thank you, @epochcoder !

I was aware of the flakiness, but didn't pay much attention to it.
Let's see how this works.

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.

3 participants