Skip to content

Commit

Permalink
added delay after terminal select all and increased timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshwinThomasIBM authored and JoshwinThomasIBM committed Jan 22, 2025
1 parent dfe21bf commit 4c4a03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/MavenTestDevModeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ it('attach debugger for start with custom parameter event', async () => {
console.log("good to close test - Attach Debugger for start with custom parameter(-DdebugPort=7777) event");
}
expect(attachStatus).to.be.true;
}).timeout(350000);
}).timeout(550000);

it('start maven with docker from liberty dashboard', async () => {

Expand Down
4 changes: 3 additions & 1 deletion src/test/utils/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { STOP_DASHBOARD_MAC_ACTION } from '../definitions/constants';
import { MapContextMenuforMac } from './macUtils';
import clipboard = require('clipboardy');
import { expect } from 'chai';
import { utils } from 'mocha';

export function delay(millisec: number) {
return new Promise( resolve => setTimeout(resolve, millisec) );
Expand Down Expand Up @@ -116,7 +117,8 @@ export function getMvnProjectPath(): string {
do{
VSBrowser.instance.takeScreenshot('degbugging 10- 3.4.0');
clipboard.writeSync('');//clean slate for clipboard
await workbench.executeCommand('terminal select all');
await workbench.executeCommand('terminal select all');
await delay(30000);
const text = clipboard.readSync();
console.log("debug:" + text) ;
if( text.includes(serverStatusCode)){
Expand Down

0 comments on commit 4c4a03a

Please sign in to comment.