mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-17 14:59:41 +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 {
|
public class TestResourceScope {
|
||||||
|
|
||||||
final static int N_THREADS = 10000;
|
final static int N_THREADS = 100;
|
||||||
|
|
||||||
@Test(dataProvider = "cleaners")
|
@Test(dataProvider = "cleaners")
|
||||||
public void testConfined(Supplier<Cleaner> cleanerSupplier) {
|
public void testConfined(Supplier<Cleaner> cleanerSupplier) {
|
||||||
@@ -206,10 +206,6 @@ public class TestResourceScope {
|
|||||||
}).start();
|
}).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
while (lockCount.get() == 0) {
|
|
||||||
waitSomeTime(); // make sure some thread gets scheduled
|
|
||||||
}
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
scope.close();
|
scope.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user