mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 12:40:28 +00:00
perf(test): skip skills snapshot work in fast env
This commit is contained in:
@@ -127,6 +127,16 @@ export async function ensureSkillSnapshot(params: {
|
||||
skillsSnapshot?: SessionEntry["skillsSnapshot"];
|
||||
systemSent: boolean;
|
||||
}> {
|
||||
if (process.env.OPENCLAW_TEST_FAST === "1") {
|
||||
// In fast unit-test runs we skip filesystem scanning, watchers, and session-store writes.
|
||||
// Dedicated skills tests cover snapshot generation behavior.
|
||||
return {
|
||||
sessionEntry: params.sessionEntry,
|
||||
skillsSnapshot: params.sessionEntry?.skillsSnapshot,
|
||||
systemSent: params.sessionEntry?.systemSent ?? false,
|
||||
};
|
||||
}
|
||||
|
||||
const {
|
||||
sessionEntry,
|
||||
sessionStore,
|
||||
|
||||
Reference in New Issue
Block a user