mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 12:52:54 +00:00
fix: let skills JSON output flush naturally
This commit is contained in:
@@ -697,6 +697,7 @@ describe("skills cli commands", () => {
|
||||
expect(defaultRuntime.writeStdout).toHaveBeenCalledTimes(1);
|
||||
expect(defaultRuntime.writeJson).not.toHaveBeenCalled();
|
||||
expect(defaultRuntime.log).not.toHaveBeenCalled();
|
||||
expect(defaultRuntime.exit).not.toHaveBeenCalled();
|
||||
expect(runtimeErrors).toStrictEqual([]);
|
||||
expect(runtimeStdout).toHaveLength(1);
|
||||
|
||||
|
||||
@@ -79,7 +79,6 @@ async function runSkillsAction(
|
||||
try {
|
||||
const report = await loadSkillsStatusReport(options);
|
||||
defaultRuntime.writeStdout(render(report));
|
||||
defaultRuntime.exit(0);
|
||||
} catch (err) {
|
||||
defaultRuntime.error(String(err));
|
||||
defaultRuntime.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user