fix: allow wildcard control commands

This commit is contained in:
Peter Steinberger
2026-01-05 02:05:23 +01:00
parent 00370139a5
commit 359cb66e68
4 changed files with 48 additions and 53 deletions

View File

@@ -138,7 +138,10 @@ describe("gateway SIGTERM", () => {
proc.once("exit", (code, signal) => resolve({ code, signal })),
);
if (result.code !== 0) {
if (
result.code !== 0 &&
!(result.code === null && result.signal === "SIGTERM")
) {
const stdout = out.join("");
const stderr = err.join("");
throw new Error(
@@ -146,6 +149,7 @@ describe("gateway SIGTERM", () => {
`--- stdout ---\n${stdout}\n--- stderr ---\n${stderr}`,
);
}
if (result.code === null && result.signal === "SIGTERM") return;
expect(result.signal).toBeNull();
});
});