mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 19:48:48 +00:00
test: align heartbeat session seed
This commit is contained in:
@@ -225,9 +225,9 @@ describe("heartbeat runner skips when target session lane is busy", () => {
|
||||
});
|
||||
|
||||
it("returns requests-in-flight when the target session has an active reply run", async () => {
|
||||
await withTempHeartbeatSandbox(async ({ storePath, replySpy }) => {
|
||||
await withTempHeartbeatSandbox(async ({ agentId, replySpy }) => {
|
||||
const cfg = createHeartbeatTelegramConfig();
|
||||
const sessionKey = await seedHeartbeatTelegramSession(storePath, cfg);
|
||||
const sessionKey = await seedHeartbeatTelegramSession(agentId, cfg);
|
||||
const isReplyRunActive = vi.fn((key: string) => key === sessionKey);
|
||||
|
||||
const result = await runHeartbeatOnce({
|
||||
|
||||
Reference in New Issue
Block a user