Skip to content

Commit c05d0d5

Browse files
committed
fix: restore dreaming env after setup
1 parent 535af44 commit c05d0d5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extensions/memory-core/src/dreaming-phases.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
resolveMemoryRemDreamingConfig,
1212
} from "openclaw/plugin-sdk/memory-core-host-status";
1313
import { saveSessionStore } from "openclaw/plugin-sdk/session-store-runtime";
14-
import { describe, expect, it, vi } from "vitest";
14+
import { afterEach, describe, expect, it, vi } from "vitest";
1515
import {
1616
testing,
1717
filterRecallEntriesWithinLookback,
@@ -79,6 +79,10 @@ function restoreDreamingTestEnv(): void {
7979
}
8080
}
8181

82+
afterEach(() => {
83+
restoreDreamingTestEnv();
84+
});
85+
8286
function requireCandidateByKey<T extends { key: string }>(candidates: T[], key: string): T {
8387
const candidate = candidates.find((entry) => entry.key === key);
8488
if (!candidate) {

0 commit comments

Comments
 (0)