8196028: JMX: Not enough JDP packets received before timeout
Reviewed-by: dholmes, egahlin
--- 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.