8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently
authorbpb
Tue, 02 Jul 2019 08:32:33 -0700
changeset 55548 1ba68bf27e27
parent 55547 c7a7728eeddc
child 55549 80853c6c9136
child 57448 ac7b7fe5f7d8
8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently Reviewed-by: lancea, alanb
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;