Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 99a832c

Browse files
authored
Fusetools2 1199 echo timeout (#635)
FUSETOOLS2-1199 - fixing echo timeout * additional clean-up * increasing timeouts Signed-off-by: Brian Fitzpatrick <[email protected]>
1 parent bfdada1 commit 99a832c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/suite/stubDemoTutorial.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const testMD = Uri.parse('vscode://redhat.vscode-didact?extension=demos/markdown
2929
const delayTime = 2500;
3030
const COMMAND_WAIT_TIMEOUT = 15000;
3131
const COMMAND_WAIT_RETRY = 1500;
32+
const TERMINAL_WAIT_RETRY = 2000;
3233

3334
suite('stub out a tutorial', () => {
3435

@@ -65,7 +66,6 @@ suite('stub out a tutorial', () => {
6566
}
6667
});
6768

68-
6969
async function validateTerminalResponse(terminalName : string, terminalText : string, terminalResponse? : string) {
7070
console.log(`validateTerminalResponse terminal ${terminalName} executing text ${terminalText}`);
7171
const term = window.createTerminal(terminalName);
@@ -77,7 +77,7 @@ suite('stub out a tutorial', () => {
7777
await waitUntil(async () => {
7878
await focusOnNamedTerminal(terminalName);
7979
return terminalName === window.activeTerminal?.name;
80-
}, 1000);
80+
}, TERMINAL_WAIT_RETRY);
8181

8282
try {
8383
const predicate = async () => {
@@ -114,7 +114,7 @@ suite('stub out a tutorial', () => {
114114

115115
async function executeAndWait(command: string): Promise<void> {
116116
await commands.executeCommand(command);
117-
delay(100);
117+
delay(200);
118118
}
119119

120120
function getNamedTerminal(terminalName : string): Terminal | undefined {

0 commit comments

Comments
 (0)