# HG changeset patch # User bpb # Date 1562081553 25200 # Node ID 1ba68bf27e279e1a6f6983dd6a7b207b5bfdbc18 # Parent c7a7728eeddcb44b228ae25ed05b5dec1d61ab1b 8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently Reviewed-by: lancea, alanb diff -r c7a7728eeddc -r 1ba68bf27e27 test/jdk/java/nio/channels/FileChannel/MapTest.java --- a/test/jdk/java/nio/channels/FileChannel/MapTest.java Tue Jul 02 10:21:23 2019 -0400 +++ b/test/jdk/java/nio/channels/FileChannel/MapTest.java Tue Jul 02 08:32:33 2019 -0700 @@ -24,7 +24,7 @@ /* @test * @bug 4429043 8002180 * @summary Test file mapping with FileChannel - * @run main/othervm MapTest + * @run main/othervm/timeout=240 MapTest * @key randomness */ @@ -195,7 +195,7 @@ * the data exercising various valid and invalid writeback ranges. */ private static void testForce() throws Exception { - for (int x=0; x<100; x++) { + for (int x=0; x<50; x++) { try (RandomAccessFile raf = new RandomAccessFile(blah, "rw")) { FileChannel fc = raf.getChannel(); final int BLOCK_SIZE = 64;