Skip to content

Commit

Permalink
increase stop timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Wisniewski <[email protected]>
  • Loading branch information
Adam Wisniewski authored and Adam Wisniewski committed Jul 27, 2023
1 parent fc050fd commit 9b9e226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class DevModeOperations {
public static final String BROWSER_MVN_UT_REPORT_NAME_SUFFIX = "surefire report";
public static final String BROWSER_GRADLE_TEST_REPORT_NAME_SUFFIX = "test report";

private static final int STOP_TIMEOUT_SECONDS = 40;
private static final int STOP_TIMEOUT_SECONDS = 60;
protected static final QualifiedName STOP_JOB_COMPLETION_TIMEOUT = new QualifiedName("io.openliberty.tools.eclipse.ui",
"stopJobCompletionTimeout");
protected static final QualifiedName STOP_JOB_COMPLETION_EXIT_CODE = new QualifiedName("io.openliberty.tools.eclipse.ui",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static void validateApplicationOutcome(String ctxRoot, boolean expectSucc
*/
public static void validateLibertyServerStopped(String testAppPath) {
String wlpMsgLogPath = testAppPath + "/wlp/usr/servers/defaultServer/logs/messages.log";
int maxAttempts = 20;
int maxAttempts = 30;
boolean foundStoppedMsg = false;

// Find message CWWKE0036I: The server x stopped after y seconds
Expand All @@ -84,7 +84,7 @@ public static void validateLibertyServerStopped(String testAppPath) {
if (foundStoppedMsg) {
break;
} else {
Thread.sleep(2000);
Thread.sleep(3000);
}
} catch (Exception e) {
Assertions.fail("Caught exception waiting for stop message", e);
Expand Down

0 comments on commit 9b9e226

Please sign in to comment.