Skip to content

Use more SynchronizedItemReader in tests #4452

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

Closed
wants to merge 1 commit into from
Closed

Use more SynchronizedItemReader in tests #4452

wants to merge 1 commit into from

Conversation

hpoettker
Copy link
Contributor

The test AsyncTaskletStepTests::testStepExecutionUpdates is flaky at the moment. At least on my machine, it fails rather reliably a handful of times with @RepeatedTest(1000).

This PR fixes the test by using a SynchronizedItemReader. It also replaces the fix from #4291 with SynchronizedItemReader, which wasn't available previously. Furthermore, it polishes the two tests a bit with more recent Java features.

@fmbenhassine
Copy link
Contributor

Rebased and merged as cf1f34b. Thank you for your contribution!

@fmbenhassine fmbenhassine added this to the 5.1.0-RC1 milestone Oct 13, 2023
@hpoettker hpoettker deleted the more-synchronized-readers branch October 13, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants