Fix new test not providing typical input

This commit is contained in:
Michael B. Gale
2026-11-02 12:24:01 +00:00
parent 120993f723
commit 95dd6bfbc4

View File

@@ -565,8 +565,7 @@ test.serial(
let stdoutListener: ((data: Buffer) => void) | undefined = undefined;
const exec = sinon.stub<[], Promise<number>>().callsFake(async () => {
if (stdoutListener !== undefined) {
stdoutListener(Buffer.from("Xcode 27.5"));
stdoutListener(Buffer.from("Build version 27F9"));
stdoutListener(Buffer.from("27.5"));
return 0;
} else {
throw new Error("Error to force next fallback");