mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:30:44 +00:00
test: add published upgrade survivor lane (#75221)
* test: add published upgrade survivor lane * test: keep published upgrade exit chunk
This commit is contained in:
committed by
GitHub
parent
919a68c64d
commit
c0058fda2f
@@ -175,6 +175,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
|
||||
"doctor-switch",
|
||||
"update-channel-switch",
|
||||
"upgrade-survivor",
|
||||
"published-upgrade-survivor",
|
||||
]);
|
||||
expect(packageUpdateCore.lanes).toEqual(
|
||||
expect.arrayContaining([
|
||||
@@ -194,6 +195,10 @@ describe("scripts/lib/docker-e2e-plan", () => {
|
||||
name: "upgrade-survivor",
|
||||
stateScenario: "upgrade-survivor",
|
||||
}),
|
||||
expect.objectContaining({
|
||||
name: "published-upgrade-survivor",
|
||||
stateScenario: "upgrade-survivor",
|
||||
}),
|
||||
]),
|
||||
);
|
||||
expect(pluginsRuntimePlugins.lanes.map((lane) => lane.name)).toEqual(["plugins"]);
|
||||
|
||||
@@ -91,8 +91,10 @@ describe("runtime postbuild static assets", () => {
|
||||
|
||||
writeLegacyCliExitCompatChunks({ rootDir });
|
||||
|
||||
await expect(
|
||||
fs.readFile(path.join(rootDir, "dist", "memory-state-CcqRgDZU.js"), "utf8"),
|
||||
).resolves.toContain("function hasMemoryRuntime()");
|
||||
for (const chunk of ["memory-state-CcqRgDZU.js", "memory-state-DwGdReW4.js"]) {
|
||||
await expect(fs.readFile(path.join(rootDir, "dist", chunk), "utf8")).resolves.toContain(
|
||||
"function hasMemoryRuntime()",
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user