diff --git a/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts b/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts index f43ba17975c..15aa81288e0 100644 --- a/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts +++ b/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts @@ -771,9 +771,14 @@ import { assertNoRpc, poll } from '../utils'; terminal.sendText('echo $C'); // Poll for the echo results to show up - await poll(() => Promise.resolve(), () => data.includes('~a2~'), '~a2~ should be printed'); - await poll(() => Promise.resolve(), () => data.includes('b1~b2~'), 'b1~b2~ should be printed'); - await poll(() => Promise.resolve(), () => data.includes('~c2~c1'), '~c2~c1 should be printed'); + try { + await poll(() => Promise.resolve(), () => data.includes('~a2~'), '~a2~ should be printed'); + await poll(() => Promise.resolve(), () => data.includes('b1~b2~'), 'b1~b2~ should be printed'); + await poll(() => Promise.resolve(), () => data.includes('~c2~c1'), '~c2~c1 should be printed'); + } catch (err) { + console.error('DATA UP UNTIL NOW:', data); + throw err; + } // Wait for terminal to be disposed await new Promise(r => {