[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-09-10 16:53:01 +00:00 committed by GitHub
parent d803fe6123
commit 0375f7aeae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,29 +40,21 @@ describe("pipeBetweenServers", () => {
await fs.rm(dir, { recursive: true, force: true });
}, 30_000);
it(
"reports a target failure with its stderr",
async () => {
await expect(
pipeBetweenServers({
source: { serverId: null, command: "printf x" },
target: { serverId: null, command: "echo boom >&2; exit 3" },
}),
).rejects.toThrow("target exited with code 3: boom");
},
30_000,
);
it("reports a target failure with its stderr", async () => {
await expect(
pipeBetweenServers({
source: { serverId: null, command: "printf x" },
target: { serverId: null, command: "echo boom >&2; exit 3" },
}),
).rejects.toThrow("target exited with code 3: boom");
}, 30_000);
it(
"reports a source failure",
async () => {
await expect(
pipeBetweenServers({
source: { serverId: null, command: "exit 2" },
target: { serverId: null, command: "cat > /dev/null" },
}),
).rejects.toThrow("source exited with code 2");
},
30_000,
);
it("reports a source failure", async () => {
await expect(
pipeBetweenServers({
source: { serverId: null, command: "exit 2" },
target: { serverId: null, command: "cat > /dev/null" },
}),
).rejects.toThrow("source exited with code 2");
}, 30_000);
});