style(test): biome format
parent
37eaa49e4c
commit
9ea697ac09
|
|
@ -481,7 +481,10 @@ describe("gateway server", () => {
|
|||
await server.close();
|
||||
});
|
||||
|
||||
test("agent ack response then final response", { timeout: 8000 }, async () => {
|
||||
test(
|
||||
"agent ack response then final response",
|
||||
{ timeout: 8000 },
|
||||
async () => {
|
||||
const { server, ws } = await startServerWithClient();
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
|
|
@ -502,12 +505,16 @@ describe("gateway server", () => {
|
|||
const ackP = onceMessage(
|
||||
ws,
|
||||
(o) =>
|
||||
o.type === "res" && o.id === "ag1" && o.payload?.status === "accepted",
|
||||
o.type === "res" &&
|
||||
o.id === "ag1" &&
|
||||
o.payload?.status === "accepted",
|
||||
);
|
||||
const finalP = onceMessage(
|
||||
ws,
|
||||
(o) =>
|
||||
o.type === "res" && o.id === "ag1" && o.payload?.status !== "accepted",
|
||||
o.type === "res" &&
|
||||
o.id === "ag1" &&
|
||||
o.payload?.status !== "accepted",
|
||||
);
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
|
|
@ -526,7 +533,8 @@ describe("gateway server", () => {
|
|||
|
||||
ws.close();
|
||||
await server.close();
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
test(
|
||||
"agent dedupes by idempotencyKey after completion",
|
||||
|
|
|
|||
|
|
@ -74,7 +74,10 @@ describe("tau-rpc", () => {
|
|||
expect(writes.length).toBeGreaterThan(0);
|
||||
const first = writes[0]?.trim();
|
||||
expect(first?.endsWith("\n")).toBe(false);
|
||||
const obj = JSON.parse(first ?? "{}") as { type?: string; message?: unknown };
|
||||
const obj = JSON.parse(first ?? "{}") as {
|
||||
type?: string;
|
||||
message?: unknown;
|
||||
};
|
||||
expect(obj.type).toBe("prompt");
|
||||
expect(obj.message).toBe("hello");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue