reduce the number of threads used by testNotBlockingUnsafeStackTraces
It times out some times. Fixes #24936
This commit is contained in:
parent
4077600035
commit
aa5b11687d
|
@ -126,9 +126,9 @@ public class LongGCDisruptionTests extends ESTestCase {
|
|||
final AtomicBoolean stop = new AtomicBoolean();
|
||||
final LockedExecutor lockedExecutor = new LockedExecutor();
|
||||
final AtomicLong ops = new AtomicLong();
|
||||
final Thread[] threads = new Thread[10];
|
||||
final Thread[] threads = new Thread[5];
|
||||
try {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
for (int i = 0; i < threads.length; i++) {
|
||||
threads[i] = new Thread(() -> {
|
||||
for (int iter = 0; stop.get() == false; iter++) {
|
||||
if (iter % 2 == 0) {
|
||||
|
|
Loading…
Reference in New Issue