test(plugins): await lifecycle lease child result (#112959)

This commit is contained in:
Peter Steinberger
2026-07-23 03:28:36 -04:00
committed by GitHub
parent a229456f48
commit 19fb45d550

View File

@@ -143,7 +143,9 @@ describe("plugin lifecycle lease", () => {
await waitForPath(firstMarker);
const second = runLeaseChild(childScript, ["second", ...childArgs]);
await waitForPath(secondReady);
await waitForPath(secondResult);
// Wait for the child to close so its result write is fully flushed before
// reading; file existence alone can race with the write after open().
await second;
let assertionError: unknown;
try {