fix(gateway): handle SIGTERM shutdown cleanly
This commit is contained in:
@@ -157,7 +157,10 @@ describe("gateway server", () => {
|
||||
},
|
||||
}),
|
||||
);
|
||||
await onceMessage(ws, (o) => o.type === "res" && o.id === "agent-last-stale");
|
||||
await onceMessage(
|
||||
ws,
|
||||
(o) => o.type === "res" && o.id === "agent-last-stale",
|
||||
);
|
||||
|
||||
const spy = vi.mocked(agentCommand);
|
||||
expect(spy).toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user