add debug statement (#238299)

pull/238302/head
João Moreno 2025-01-20 15:58:40 +01:00 committed by GitHub
parent 60fe838133
commit e55ac22a12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 3 deletions

View File

@ -771,9 +771,14 @@ import { assertNoRpc, poll } from '../utils';
terminal.sendText('echo $C');
// Poll for the echo results to show up
await poll<void>(() => Promise.resolve(), () => data.includes('~a2~'), '~a2~ should be printed');
await poll<void>(() => Promise.resolve(), () => data.includes('b1~b2~'), 'b1~b2~ should be printed');
await poll<void>(() => Promise.resolve(), () => data.includes('~c2~c1'), '~c2~c1 should be printed');
try {
await poll<void>(() => Promise.resolve(), () => data.includes('~a2~'), '~a2~ should be printed');
await poll<void>(() => Promise.resolve(), () => data.includes('b1~b2~'), 'b1~b2~ should be printed');
await poll<void>(() => 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<void>(r => {