From 21727d536100724f904619a60a4b3653a9bac9a2 Mon Sep 17 00:00:00 2001 From: Szymon Kaliski Date: Mon, 6 May 2024 14:19:19 +0000 Subject: [PATCH] tests test --- tests/linux.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/linux.test.ts b/tests/linux.test.ts index c1db06b..b9a95f7 100644 --- a/tests/linux.test.ts +++ b/tests/linux.test.ts @@ -134,6 +134,7 @@ describe('PTY', () => { pty.resize({ rows: 60, cols: 100 }); buffer = ''; writeStream.write("stty size; echo 'done2'\n"); + writeStream.end(EOT); } if (buffer.includes('done2\r\n')) { @@ -145,7 +146,6 @@ describe('PTY', () => { const writeStream = fs.createWriteStream('', { fd: pty.fd() }); writeStream.write("stty size; echo 'done1'\n"); - writeStream.end(EOT); writeStream.on('error', (err: any) => { if (err.code && err.code.indexOf('EIO') !== -1) { return;