mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 15:22:55 +08:00
Fix flakey test (#817)
This commit is contained in:
parent
ddd04b6997
commit
9ac66375a0
@ -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)
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user