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

Get rid of non-working workaround to flakiness when Java LS server initialization failed #14945

Merged
merged 5 commits into from
Oct 22, 2019
Merged
Show file tree
Hide file tree
Changes from 2 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
15 changes: 2 additions & 13 deletions e2e/pageobjects/ide/Ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,8 @@ export class Ide {

async checkLsInitializationStart(expectedTextInStatusBar: string) {
Logger.debug('Ide.checkLsInitializationStart');

try {
await this.waitStatusBarContains(expectedTextInStatusBar, 20000);
} catch (err) {
if (!(err instanceof error.TimeoutError)) {
throw err;
}

await this.driverHelper.getDriver().navigate().refresh();
await this.waitAndSwitchToIdeFrame();
await this.waitStatusBarContains(expectedTextInStatusBar);
}


await this.waitStatusBarContains(expectedTextInStatusBar, 20000);
}

async closeAllNotifications() {
Expand Down
9 changes: 8 additions & 1 deletion e2e/tests/e2e_happy_path/HappyPath.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ suite('Language server validation', async () => {
test('Java LS initialization', async () => {
await projectTree.expandPathAndOpenFileInAssociatedWorkspace(pathToJavaFolder, javaFileName);
await editor.selectTab(javaFileName);
await ide.checkLsInitializationStart('Starting Java Language Server');

try {
await ide.checkLsInitializationStart('Starting Java Language Server');
} catch (err) {
console.log("Known flakiness https://github.com/eclipse/che/issues/14944");
throw err;
}

await ide.waitStatusBarTextAbsence('Starting Java Language Server', 1800000);
await checkJavaPathCompletion();
await ide.waitStatusBarTextAbsence('Building workspace', 360000);
Expand Down