Skip to content

Commit

Permalink
tests test
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkaliski committed May 6, 2024
1 parent c0ffca9 commit 21727d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/linux.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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;
Expand Down

0 comments on commit 21727d5

Please sign in to comment.