mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
test: wait for deferred gateway agent dispatch
This commit is contained in:
@@ -252,6 +252,7 @@ describe("gateway server agent", () => {
|
||||
idempotencyKey: "idem-agent-subdepth",
|
||||
});
|
||||
expect(res.ok).toBe(true);
|
||||
await waitForAgentCall("idem-agent-subdepth");
|
||||
|
||||
const raw = await fs.readFile(sharedSessionStorePath, "utf-8");
|
||||
const persisted = JSON.parse(raw) as Record<
|
||||
|
||||
@@ -269,6 +269,7 @@ describe("gateway server agent", () => {
|
||||
idempotencyKey: "idem-agent-cli-binding",
|
||||
});
|
||||
expect(res.ok).toBe(true);
|
||||
await readAgentCommandCall({ runId: "idem-agent-cli-binding" });
|
||||
|
||||
const sessionStorePath = testState.sessionStorePath;
|
||||
if (!sessionStorePath) {
|
||||
|
||||
Reference in New Issue
Block a user