mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8268566: java/foreign/TestResourceScope.java timed out
Reviewed-by: jvernee
(cherry picked from commit e3773977cf)
This commit is contained in:
committed by
Vitaly Provodin
parent
3ca10f742d
commit
fbcff00d33
@@ -46,7 +46,7 @@ import java.util.stream.IntStream;
|
||||
|
||||
public class TestResourceScope {
|
||||
|
||||
final static int N_THREADS = 10000;
|
||||
final static int N_THREADS = 100;
|
||||
|
||||
@Test(dataProvider = "cleaners")
|
||||
public void testConfined(Supplier<Cleaner> cleanerSupplier) {
|
||||
@@ -206,10 +206,6 @@ public class TestResourceScope {
|
||||
}).start();
|
||||
}
|
||||
|
||||
while (lockCount.get() == 0) {
|
||||
waitSomeTime(); // make sure some thread gets scheduled
|
||||
}
|
||||
|
||||
while (true) {
|
||||
try {
|
||||
scope.close();
|
||||
|
||||
Reference in New Issue
Block a user