Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase external stop timeout #422

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading