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 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
37
37
*/
38
38
public abstract class DynamicLauncher {
39
39
40
+ private static final int MAX_RETRY_ATTEMPTS = 10 ;
41
+
40
42
final String jdpName = UUID .randomUUID ().toString ();
41
43
OutputAnalyzer output ;
42
44
int jmxPort ;
@@ -52,7 +54,7 @@ protected void run() throws Exception {
52
54
try {
53
55
output .shouldNotContain ("Port already in use" );
54
56
} catch (RuntimeException e ) {
55
- if (retries < 3 ) {
57
+ if (retries < MAX_RETRY_ATTEMPTS ) {
56
58
retries ++;
57
59
tryAgain = true ;
58
60
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class JMXInterfaceBindingTest {
52
52
public static final int JMX_PORT_RANGE_UPPER = 9200 ;
53
53
public static final int JMX_PORT_RANGE_LOWER_SSL = 9201 ; // 9200 might be RMI Port
54
54
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 ;
56
56
public static final String READY_MSG = "MainThread: Ready for connections" ;
57
57
public static final String TEST_CLASS = JMXAgentInterfaceBinding .class .getSimpleName ();
58
58
public static final String KEYSTORE_LOC = System .getProperty ("test.src" , "." ) +
@@ -159,7 +159,7 @@ public void run() {
159
159
System .err .println ("Retrying the test for " + name );
160
160
}
161
161
needRetry = runTest ();
162
- } while (needRetry && (attempts ++ < MAX_RETRY_ATTEMTS ));
162
+ } while (needRetry && (attempts ++ < MAX_RETRY_ATTEMPTS ));
163
163
164
164
if (testFailed ) {
165
165
int exitValue = output .getExitValue ();
You can’t perform that action at this time.
0 commit comments