mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
fix(ci): reject malformed targeted docker group size
This commit is contained in:
@@ -65,4 +65,19 @@ describe("scripts/plan-targeted-docker-lane-groups", () => {
|
||||
{ docker_lanes: "published-upgrade-survivor", label: "published-upgrade-survivor" },
|
||||
]);
|
||||
});
|
||||
|
||||
it("rejects malformed group size values", () => {
|
||||
expect(() =>
|
||||
planTargetedDockerLaneGroups({
|
||||
groupSize: "2x",
|
||||
lanes: "doctor-switch update-channel-switch",
|
||||
}),
|
||||
).toThrow("groupSize must be a positive integer");
|
||||
expect(() =>
|
||||
planTargetedDockerLaneGroups({
|
||||
groupSize: 0,
|
||||
lanes: "doctor-switch update-channel-switch",
|
||||
}),
|
||||
).toThrow("groupSize must be a positive integer");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user