Fix flaky spring batch test (#4801)

This commit is contained in:
Lauri Tulmin 2021-12-06 08:25:03 +02:00 committed by GitHub
parent 61b0dd3698
commit 7c387853a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ package springbatch
import org.springframework.batch.item.ItemWriter
class TestItemWriter implements ItemWriter<Integer> {
final List<Integer> items = new ArrayList()
final List<Integer> items = Collections.synchronizedList(new ArrayList())
@Override
void write(List<? extends Integer> items) throws Exception {