mirror of https://github.com/openclaw/openclaw.git
test(auto-reply): use lightweight clears in agent runner setup
This commit is contained in:
parent
751ca08728
commit
9df896e5b9
|
|
@ -34,8 +34,8 @@ const {
|
|||
|
||||
describe("agent runner helpers", () => {
|
||||
beforeEach(() => {
|
||||
hoisted.loadSessionStoreMock.mockReset();
|
||||
hoisted.scheduleFollowupDrainMock.mockReset();
|
||||
hoisted.loadSessionStoreMock.mockClear();
|
||||
hoisted.scheduleFollowupDrainMock.mockClear();
|
||||
});
|
||||
|
||||
it("detects audio payloads from mediaUrl/mediaUrls", () => {
|
||||
|
|
|
|||
|
|
@ -75,10 +75,10 @@ type RunWithModelFallbackParams = {
|
|||
};
|
||||
|
||||
beforeEach(() => {
|
||||
runEmbeddedPiAgentMock.mockReset();
|
||||
runCliAgentMock.mockReset();
|
||||
runWithModelFallbackMock.mockReset();
|
||||
runtimeErrorMock.mockReset();
|
||||
runEmbeddedPiAgentMock.mockClear();
|
||||
runCliAgentMock.mockClear();
|
||||
runWithModelFallbackMock.mockClear();
|
||||
runtimeErrorMock.mockClear();
|
||||
|
||||
// Default: no provider switch; execute the chosen provider+model.
|
||||
runWithModelFallbackMock.mockImplementation(
|
||||
|
|
|
|||
Loading…
Reference in New Issue