diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java index 323512954f6a..66aa5d25bfae 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java @@ -894,7 +894,9 @@ public class VirtualFilePointerTest extends PlatformTestCase { } }; - for (int i=0; i<10_000;i++) { + int N = Math.max(100, Timings.adjustAccordingToMySpeed(20_000, false)); + System.out.println("N = " + N); + for (int i=0; i { try { ready.countDown(); @@ -918,7 +920,7 @@ public class VirtualFilePointerTest extends PlatformTestCase { }; run = true; - List threads = IntStream.range(0, N).mapToObj(n -> new Thread(read, "reader"+n)).collect(Collectors.toList()); + List threads = IntStream.range(0, NThreads).mapToObj(n -> new Thread(read, "reader"+n)).collect(Collectors.toList()); threads.forEach(Thread::start); ready.await();