mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:27:41 +00:00
chore: Fix types in tests 38/N.
This commit is contained in:
@@ -306,9 +306,14 @@ describe("gateway server agent", () => {
|
||||
|
||||
const ack = await ackP;
|
||||
const final = await finalP;
|
||||
expect(ack.payload.runId).toBeDefined();
|
||||
expect(final.payload.runId).toBe(ack.payload.runId);
|
||||
expect(final.payload.status).toBe("ok");
|
||||
const ackPayload = ack.payload;
|
||||
const finalPayload = final.payload;
|
||||
if (!ackPayload || !finalPayload) {
|
||||
throw new Error("missing websocket payload");
|
||||
}
|
||||
expect(ackPayload.runId).toBeDefined();
|
||||
expect(finalPayload.runId).toBe(ackPayload.runId);
|
||||
expect(finalPayload.status).toBe("ok");
|
||||
});
|
||||
|
||||
test("agent dedupes by idempotencyKey after completion", async () => {
|
||||
|
||||
Reference in New Issue
Block a user