mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 14:44:45 +00:00
test: dedupe cron retry mock reads
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
const runCronIsolatedAgentTurn = await loadRunCronIsolatedAgentTurn();
|
||||
|
||||
function requireEmbeddedAgentCall(index: number): { prompt?: string } {
|
||||
const call = runEmbeddedPiAgentMock.mock.calls.at(index)?.[0] as { prompt?: string } | undefined;
|
||||
const call = runEmbeddedPiAgentMock.mock.calls[index]?.[0] as { prompt?: string } | undefined;
|
||||
if (!call) {
|
||||
throw new Error(`Expected embedded PI agent call ${index}`);
|
||||
}
|
||||
@@ -30,7 +30,7 @@ function requireDeliveryRequest(): {
|
||||
skipHeartbeatDelivery?: boolean;
|
||||
deliveryPayloads?: unknown;
|
||||
} {
|
||||
const request = dispatchCronDeliveryMock.mock.calls.at(0)?.[0] as
|
||||
const request = dispatchCronDeliveryMock.mock.calls[0]?.[0] as
|
||||
| {
|
||||
skipHeartbeatDelivery?: boolean;
|
||||
deliveryPayloads?: unknown;
|
||||
|
||||
Reference in New Issue
Block a user