File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2013, 2023 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2013, 2024 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
3737 */
3838public abstract class DynamicLauncher {
3939
40+ private static final int MAX_RETRY_ATTEMPTS = 10 ;
41+
4042 final String jdpName = UUID .randomUUID ().toString ();
4143 OutputAnalyzer output ;
4244 int jmxPort ;
@@ -52,7 +54,7 @@ protected void run() throws Exception {
5254 try {
5355 output .shouldNotContain ("Port already in use" );
5456 } catch (RuntimeException e ) {
55- if (retries < 3 ) {
57+ if (retries < MAX_RETRY_ATTEMPTS ) {
5658 retries ++;
5759 tryAgain = true ;
5860 }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class JMXInterfaceBindingTest {
5252 public static final int JMX_PORT_RANGE_UPPER = 9200 ;
5353 public static final int JMX_PORT_RANGE_LOWER_SSL = 9201 ; // 9200 might be RMI Port
5454 public static final int JMX_PORT_RANGE_UPPER_SSL = 9300 ;
55- private static final int MAX_RETRY_ATTEMTS = 10 ;
55+ private static final int MAX_RETRY_ATTEMPTS = 10 ;
5656 public static final String READY_MSG = "MainThread: Ready for connections" ;
5757 public static final String TEST_CLASS = JMXAgentInterfaceBinding .class .getSimpleName ();
5858 public static final String KEYSTORE_LOC = System .getProperty ("test.src" , "." ) +
@@ -159,7 +159,7 @@ public void run() {
159159 System .err .println ("Retrying the test for " + name );
160160 }
161161 needRetry = runTest ();
162- } while (needRetry && (attempts ++ < MAX_RETRY_ATTEMTS ));
162+ } while (needRetry && (attempts ++ < MAX_RETRY_ATTEMPTS ));
163163
164164 if (testFailed ) {
165165 int exitValue = output .getExitValue ();
You can’t perform that action at this time.
0 commit comments