6736316: Timeout value in java/util/concurrent/locks/Lock/FlakyMutex.java is insufficient

Reviewed-by: chegar, dholmes, alanb
This commit is contained in:
Gary Adams 2012-02-08 11:18:29 +00:00
parent 5070eb57b6
commit ba9ddb94fa

View File

@ -86,7 +86,7 @@ public class FlakyMutex implements Lock {
} catch (Throwable t) { unexpected(t); }}});}
barrier.await();
es.shutdown();
check(es.awaitTermination(10, TimeUnit.SECONDS));
check(es.awaitTermination(30, TimeUnit.SECONDS));
}
private static class FlakySync extends AbstractQueuedLongSynchronizer {