1
0
Fork 0

Fix flakey test (#817)

pull/818/head
Luke Tomlinson 2021-05-21 15:32:09 -04:00 committed by GitHub
parent ddd04b6997
commit 9ac66375a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
//first half of © character //first half of © character
process.stdout.write(Buffer.from([0xC2]), (err) => { process.stdout.write(Buffer.from([0xC2]), (err) => {
//write in the callback so that the second byte is sent separately //write in the callback so that the second byte is sent separately
setTimeout(() => {
process.stdout.write(Buffer.from([0xA9])) //second half of © character process.stdout.write(Buffer.from([0xA9])) //second half of © character
}, 5000)
}) })

View File

@ -82,7 +82,6 @@ export async function getExecOutput(
stdout += stdoutDecoder.end() stdout += stdoutDecoder.end()
stderr += stderrDecoder.end() stderr += stderrDecoder.end()
//return undefined for stdout/stderr if they are empty
return { return {
exitCode, exitCode,
stdout, stdout,