Skip to content

Commit 9ac6637

Browse files
Fix flakey test (#817)
1 parent ddd04b6 commit 9ac6637

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//first half of © character
22
process.stdout.write(Buffer.from([0xC2]), (err) => {
33
//write in the callback so that the second byte is sent separately
4-
process.stdout.write(Buffer.from([0xA9])) //second half of © character
4+
setTimeout(() => {
5+
process.stdout.write(Buffer.from([0xA9])) //second half of © character
6+
}, 5000)
7+
58
})

packages/exec/src/exec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export async function getExecOutput(
8282
stdout += stdoutDecoder.end()
8383
stderr += stderrDecoder.end()
8484

85-
//return undefined for stdout/stderr if they are empty
8685
return {
8786
exitCode,
8887
stdout,

0 commit comments

Comments
 (0)