fix: align robot jobs with active HQ plans
This commit is contained in:
@@ -46,14 +46,15 @@ describe("robot operations and routes", () => {
|
||||
}),
|
||||
/simulated/,
|
||||
);
|
||||
const laPlan = new Plan(MATEO_COURT, { warn: false });
|
||||
assert.throws(
|
||||
() => resolveRobotOperations(plan, {
|
||||
...LUMBRIDGE_HQ_ROBOT_OPERATIONS,
|
||||
() => resolveRobotOperations(laPlan, {
|
||||
...MATEO_COURT_ROBOT_OPERATIONS,
|
||||
jobs: [{
|
||||
id: "bad-route",
|
||||
label: "Bad route",
|
||||
kind: "deliver",
|
||||
stationIds: ["sf-l1-parcel-pickup", "sf-l2-parcel-drop"],
|
||||
stationIds: ["la-l1-parcel-pickup", "la-l2-parcel-drop"],
|
||||
dwellTicks: 1,
|
||||
}],
|
||||
robots: [],
|
||||
@@ -109,7 +110,7 @@ describe("robot activity determinism", () => {
|
||||
it("exposes deterministic blocked recovery for a controlled robot", () => {
|
||||
const plan = new Plan(LUMBRIDGE_HQ, { warn: false });
|
||||
const operations = resolveRobotOperations(plan, LUMBRIDGE_HQ_ROBOT_OPERATIONS);
|
||||
const id = "sf-l1-courier";
|
||||
const id = "sf-studio-activity-01";
|
||||
const activity = createRobotActivity(plan, operations, {
|
||||
seed: 1,
|
||||
robotIds: [id],
|
||||
|
||||
Reference in New Issue
Block a user