changeset 55548:1ba68bf27e27

8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently Reviewed-by: lancea, alanb
author bpb
date Tue, 02 Jul 2019 08:32:33 -0700
parents c7a7728eeddc
children 80853c6c9136
files test/jdk/java/nio/channels/FileChannel/MapTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;