mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 09:50:21 +00:00
fix: restore protocol and extension ci
This commit is contained in:
@@ -138,7 +138,7 @@ describe("memory-core /dreaming command", () => {
|
||||
const result = await command.handler(createCommandContext("status"));
|
||||
|
||||
expect(result.text).toContain("Dreaming status:");
|
||||
expect(result.text).toContain("- enabled: on (America/Los_Angeles)");
|
||||
expect(result.text).toContain("- enabled: off (America/Los_Angeles)");
|
||||
expect(result.text).toContain("- sweep cadence: 15 */8 * * *");
|
||||
expect(result.text).toContain("- promotion policy: score>=0.8, recalls>=3, uniqueQueries>=3");
|
||||
expect(runtime.config.writeConfigFile).not.toHaveBeenCalled();
|
||||
|
||||
@@ -1107,9 +1107,10 @@ describe("short-term promotion", () => {
|
||||
|
||||
const repair = await repairShortTermPromotionArtifacts({ workspaceDir });
|
||||
|
||||
expect(repair.changed).toBe(false);
|
||||
expect(repair.rewroteStore).toBe(false);
|
||||
expect(await fs.readFile(storePath, "utf-8")).toBe(raw);
|
||||
expect(repair.changed).toBe(true);
|
||||
expect(repair.rewroteStore).toBe(true);
|
||||
const nextRaw = await fs.readFile(storePath, "utf-8");
|
||||
expect(nextRaw).not.toBe(raw);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user