Skip to content

Commit

Permalink
Reduce thread count
Browse files Browse the repository at this point in the history
  • Loading branch information
badgerwithagun committed Dec 26, 2023
1 parent 6d4152b commit b294684
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ abstract class AbstractVirtualThreadsTest extends BaseTest {

@Test
final void highVolumeVirtualThreads() throws Exception {
var count = 100;
var count = 10;
var latch = new CountDownLatch(count * 10);
var transactionManager = txManager();
var results = new ConcurrentHashMap<Integer, Integer>();
Expand Down Expand Up @@ -80,7 +80,7 @@ public void success(TransactionOutboxEntry entry) {
.toList();
futures.forEach(Thread::startVirtualThread);
for (var future : futures) {
future.get();
future.get(20, TimeUnit.SECONDS);
}
assertTrue(latch.await(30, TimeUnit.SECONDS), "Latch not opened in time");
});
Expand Down

0 comments on commit b294684

Please sign in to comment.