mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:30:57 +00:00
test(e2e): tolerate early runtime deps cleanup
This commit is contained in:
@@ -337,10 +337,12 @@ function assertStateSurvived() {
|
||||
const stage = process.env.OPENCLAW_UPGRADE_SURVIVOR_ASSERT_STAGE || "survival";
|
||||
const legacyRuntimeRoot = path.join(stateDir, "plugin-runtime-deps");
|
||||
if (stage === "baseline") {
|
||||
assert(
|
||||
fs.existsSync(path.join(legacyRuntimeRoot, "discord")),
|
||||
"legacy plugin runtime deps root missing before doctor cleanup",
|
||||
);
|
||||
if (fs.existsSync(legacyRuntimeRoot)) {
|
||||
assert(
|
||||
fs.existsSync(path.join(legacyRuntimeRoot, "discord")),
|
||||
"legacy plugin runtime deps root exists but discord debris is missing before doctor cleanup",
|
||||
);
|
||||
}
|
||||
} else {
|
||||
assert(
|
||||
!fs.existsSync(legacyRuntimeRoot),
|
||||
|
||||
Reference in New Issue
Block a user