mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:41:37 +00:00
test(core): use lightweight clears in command and dispatch setup
This commit is contained in:
@@ -50,8 +50,8 @@ function makeRun(overrides: Partial<FollowupRun["run"]> = {}): FollowupRun["run"
|
||||
|
||||
describe("agent-runner-utils", () => {
|
||||
beforeEach(() => {
|
||||
hoisted.resolveAgentModelFallbacksOverrideMock.mockReset();
|
||||
hoisted.resolveAgentIdFromSessionKeyMock.mockReset();
|
||||
hoisted.resolveAgentModelFallbacksOverrideMock.mockClear();
|
||||
hoisted.resolveAgentIdFromSessionKeyMock.mockClear();
|
||||
});
|
||||
|
||||
it("resolves model fallback options from run context", () => {
|
||||
|
||||
@@ -53,8 +53,8 @@ function createFakeThreadBindingManager(binding: FakeBinding | null) {
|
||||
|
||||
describe("/session ttl", () => {
|
||||
beforeEach(() => {
|
||||
hoisted.getThreadBindingManagerMock.mockReset();
|
||||
hoisted.setThreadBindingTtlBySessionKeyMock.mockReset();
|
||||
hoisted.getThreadBindingManagerMock.mockClear();
|
||||
hoisted.setThreadBindingTtlBySessionKeyMock.mockClear();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user