Skip to content

Commit 160b0a3

Browse files
JoshwinThomasIBMJoshwinThomasIBM
authored andcommitted
Removed unwanted delays
1 parent ad5dcbe commit 160b0a3

File tree

1 file changed

+19
-24
lines changed

1 file changed

+19
-24
lines changed

src/test/MavenTestDevModeActions.ts

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -284,30 +284,25 @@ it('check all test reports exists', async () => {
284284
expect(existenceResults.every(result => result === true)).to.be.true;
285285
}).timeout(10000);
286286

287-
it('View latest Unit test report when all the reports exists',async () =>{
288-
const outputView = await new BottomBarPanel().openOutputView();
289-
outputView.clearText();
290-
await utils.launchDashboardAction(item,constants.UTR_DASHABOARD_ACTION, constants.UTR_DASHABOARD_MAC_ACTION);
291-
utils.delay(5000);
292-
await outputView.selectChannel("My Extension Output");
293-
const text = await outputView.getText();
294-
assert(text.includes('/target/reports/surefire.html'));
295-
await utils.closeEditor();
296-
297-
}).timeout(20000);
298-
299-
it('View latest Integration test report when all the reports exists',async () =>{
300-
301-
const outputView = await new BottomBarPanel().openOutputView();
302-
outputView.clearText();
303-
await utils.launchDashboardAction(item, constants.ITR_DASHBOARD_ACTION, constants.ITR_DASHBOARD_MAC_ACTION);
304-
utils.delay(5000);
305-
await outputView.selectChannel("My Extension Output");
306-
const text = await outputView.getText();
307-
assert(text.includes('/target/reports/failsafe.html'));
308-
await utils.closeEditor();
309-
}).timeout(20000);
310-
287+
it('View latest Unit test report when all the reports exists', async () => {
288+
const outputView = await new BottomBarPanel().openOutputView();
289+
outputView.clearText();
290+
await utils.launchDashboardAction(item, constants.UTR_DASHABOARD_ACTION, constants.UTR_DASHABOARD_MAC_ACTION);
291+
await outputView.selectChannel("My Extension Output");
292+
const text = await outputView.getText();
293+
assert(text.includes('/target/reports/surefire.html'));
294+
await utils.closeEditor();
295+
}).timeout(10000);
296+
297+
it('View latest Integration test report when all the reports exists', async () => {
298+
const outputView = await new BottomBarPanel().openOutputView();
299+
outputView.clearText();
300+
await utils.launchDashboardAction(item, constants.ITR_DASHBOARD_ACTION, constants.ITR_DASHBOARD_MAC_ACTION);
301+
await outputView.selectChannel("My Extension Output");
302+
const text = await outputView.getText();
303+
assert(text.includes('/target/reports/failsafe.html'));
304+
await utils.closeEditor();
305+
}).timeout(10000);
311306

312307
it('View Unit test report for maven project with surefire 3.4.0', async () => {
313308

0 commit comments

Comments
 (0)