Skip to content

Commit 032b07b

Browse files
author
Psilo
committed
fix concurrency timeout
1 parent bfc6760 commit 032b07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/info/unterrainer/commons/rdbutils/ManualLockingTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void persistingAndReadingEntityWorks() throws InterruptedException {
4242
.editedOn(LocalDateTime.now())
4343
.build());
4444

45-
ExecutorService executorService = new ThreadPoolExecutor(200, 200, 100L, TimeUnit.MILLISECONDS,
45+
ExecutorService executorService = new ThreadPoolExecutor(20, 20, 60L, TimeUnit.SECONDS,
4646
new LinkedBlockingQueue<Runnable>());
4747
((ThreadPoolExecutor) executorService).allowCoreThreadTimeOut(true);
4848
executorService.execute(() -> selectFirstTestEntityPessimistically());

0 commit comments

Comments
 (0)