Skip to content

Commit

Permalink
Fix JavaSpringboot build task timeout (#18487)
Browse files Browse the repository at this point in the history
* Added test failure duration logging

Signed-off-by: Tibor Dancs <tdancs@redhat.com>

* Increased run webapp task timeout

Signed-off-by: Tibor Dancs <tdancs@redhat.com>
  • Loading branch information
ScrewTSW authored Dec 4, 2020
1 parent 135edf8 commit 7cf011b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/e2e/driver/CheReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { ITestWorkspaceUtil } from '../utils/workspace/ITestWorkspaceUtil';
import { PreferencesHandler, AskForConfirmationType, TerminalRendererType } from '../utils/PreferencesHandler';
import { CheApiRequestHandler } from '../utils/requestHandlers/CheApiRequestHandler';
import { TimeoutConstants } from '../TimeoutConstants';
import { Logger } from '../utils/Logger';

const e2eContainer = inversifyConfig.e2eContainer;
const driver: IDriver = e2eContainer.get(TYPES.Driver);
Expand Down Expand Up @@ -120,6 +121,7 @@ class CheReporter extends mocha.reporters.Spec {
});

runner.on('fail', async function (test: mocha.Test) {
Logger.error(`CheReporter runner.on.fail: ${test.fullTitle()} failed after ${test.duration}ms`);
// raise flag for keeping the screencast
deleteScreencast = false;

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tests/devfiles/JavaSpringBoot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ suite(`${stack} test`, async () => {
});

suite('Validation of workspace execution', async () => {
codeExecutionTests.runTaskWithNotification(runTaskName, runTaskExpectedDialogue, 30_000);
codeExecutionTests.runTaskWithNotification(runTaskName, runTaskExpectedDialogue, 120_000);
codeExecutionTests.closeTerminal(runTaskName);
});

Expand Down

0 comments on commit 7cf011b

Please sign in to comment.