changeset 49469:7ea4724a959c

8196028: JMX: Not enough JDP packets received before timeout Reviewed-by: dholmes, egahlin
author hb
date Tue, 20 Mar 2018 13:40:03 +0530
parents ccb003941743
children 4881673579b7
files test/jdk/sun/management/jdp/JdpOffTestCase.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.