Memory: split slot-owner dreaming helper tests

This commit is contained in:
Mariano Belinky
2026-04-09 22:50:34 +02:00
parent 0fac3d38ca
commit 9aaf29bd36

View File

@@ -156,6 +156,9 @@ describe("memory dreaming host helpers", () => {
"America/Los_Angeles",
),
).toBe(true);
});
it("resolves the configured memory-slot plugin id", () => {
expect(
resolveMemoryDreamingPluginId({
plugins: {
@@ -165,6 +168,9 @@ describe("memory dreaming host helpers", () => {
},
} as OpenClawConfig),
).toBe("memos-local-openclaw-plugin");
});
it("reads dreaming config from the configured memory-slot owner", () => {
expect(
resolveMemoryDreamingPluginConfig({
plugins: {
@@ -187,6 +193,9 @@ describe("memory dreaming host helpers", () => {
enabled: true,
},
});
});
it("reads dreaming config from memory-lancedb when it owns the memory slot", () => {
expect(
resolveMemoryDreamingPluginConfig({
plugins: {
@@ -211,6 +220,9 @@ describe("memory dreaming host helpers", () => {
frequency: "0 */6 * * *",
},
});
});
it("falls back to memory-core when no memory slot override is configured", () => {
expect(
resolveMemoryDreamingPluginConfig({
plugins: {