8196028: JMX: Not enough JDP packets received before timeout
authorhb
Tue, 20 Mar 2018 13:40:03 +0530
changeset 49464 7ea4724a959c
parent 49463 ccb003941743
child 49465 4881673579b7
8196028: JMX: Not enough JDP packets received before timeout Reviewed-by: dholmes, egahlin
test/jdk/sun/management/jdp/JdpOffTestCase.java
--- a/test/jdk/sun/management/jdp/JdpOffTestCase.java	Tue Mar 20 11:24:32 2018 +0530
+++ b/test/jdk/sun/management/jdp/JdpOffTestCase.java	Tue Mar 20 13:40:03 2018 +0530
@@ -54,6 +54,14 @@
         testPassed = true;
     }
 
+    /**
+     * The socket did not timeout and no valid JDP packets were received.
+     */
+    @Override
+    protected void shutdown() throws Exception {
+        log.fine("Test timed out. Test passed!");
+        testPassed = true;
+    }
 
     /**
      * This method is executed after a correct Jdp packet, coming from this VM has been received.