Skip to content

Commit 9d3622d

Browse files
committed
Increase timeouts in pty-echo test and add raw data logging
1 parent 7a0d49c commit 9d3622d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/pty-echo.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('PTY Echo Behavior', () => {
2424

2525
// Subscribe to raw output events
2626
onRawOutput((_sessionId, rawData) => {
27+
console.log('Received raw data:', rawData)
2728
receivedOutputs.push(rawData)
2829
})
2930

@@ -40,14 +41,14 @@ describe('PTY Echo Behavior', () => {
4041
console.log('Echo session from get:', fullSession)
4142

4243
// Wait for PTY to initialize and show prompt
43-
await new Promise((resolve) => setTimeout(resolve, 200))
44+
await new Promise((resolve) => setTimeout(resolve, 1000))
4445

4546
// Send test input
4647
const success = manager.write(session.id, 'a')
4748
console.log('Write success:', success)
4849

4950
// Wait for echo to be processed
50-
await new Promise((resolve) => setTimeout(resolve, 200))
51+
await new Promise((resolve) => setTimeout(resolve, 1000))
5152

5253
// Clean up
5354
manager.kill(session.id, true)

0 commit comments

Comments
 (0)