mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 21:03:02 +00:00
test: verify diagnostics and session callbacks
This commit is contained in:
@@ -626,9 +626,7 @@ describe("discoverOpenClawPlugins", () => {
|
||||
discoverOpenClawPlugins({ env: buildDiscoveryEnv(stateDir) }),
|
||||
);
|
||||
|
||||
expect(result.diagnostics.map((entry) => entry.message)).not.toContainEqual(
|
||||
expect.stringContaining("pnpm install"),
|
||||
);
|
||||
expect(result.diagnostics.some((entry) => entry.message.includes("pnpm install"))).toBe(false);
|
||||
});
|
||||
|
||||
it("does not treat repo-level live or test files as plugin entrypoints", () => {
|
||||
|
||||
@@ -78,9 +78,7 @@ describe("hook correlation fields", () => {
|
||||
|
||||
await expect(run).resolves.toBeUndefined();
|
||||
expect(logger.error).toHaveBeenCalledWith(
|
||||
expect.stringContaining(
|
||||
"[hooks] agent_end handler from plugin-a failed: timed out after 5ms",
|
||||
),
|
||||
"[hooks] agent_end handler from plugin-a failed: timed out after 5ms",
|
||||
);
|
||||
} finally {
|
||||
vi.useRealTimers();
|
||||
|
||||
Reference in New Issue
Block a user