Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

test(skill-burger): ignore the expected connection reset when a stopped child's socket closes

milind-sonic31613857ed2
diff --git a/server/skill-burger/shell-stop.test.ts b/server/skill-burger/shell-stop.test.ts
index 5c3d765583..d1c8451bf7 100644
--- a/server/skill-burger/shell-stop.test.ts
+++ b/server/skill-burger/shell-stop.test.ts
@@ -40,6 +40,8 @@ it.runIf(process.platform === "linux").each(["abort", "overflow", "timeout"])("s
const wrote = new Promise<string>((resolve) => { written = () => resolve("wrote"); });
const server = createServer((socket) => {
held = socket;
+ // The stopped child resets its connection; that reset is the expected outcome, not a test error.
+ socket.on("error", () => {});
closed = new Promise<void>((resolve) => socket.once("close", () => resolve()));
let line = "";
socket.on("data", (chunk) => {