Skip to content

Commit

Permalink
core: fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Greiner <[email protected]>
  • Loading branch information
louisgreiner committed Jan 8, 2025
1 parent 5a2700b commit 5a5ff11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,7 @@ class STDCMEndpointV2(private val infraManager: InfraManager) : Take {
convertWorkScheduleCollection(infra.rawInfra, request.workSchedules)
trainsRequirements.add(convertedWorkSchedules)
val spacingRequirements = trainsRequirements.flatMap { it.spacingRequirements }
val steps =
parseSteps(
infra,
request.pathItems,
request.startTime,
request.rollingStock.length.distance.meters
)
val steps = parseSteps(infra, request.pathItems, request.startTime, rollingStock.length)

// Run the STDCM pathfinding
val path =
Expand Down
5 changes: 4 additions & 1 deletion editoast/src/views/path/pathfinding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ pub mod tests {
"rolling_stock_supported_signaling_systems":["BAL","BAPR"],
"rolling_stock_maximum_speed":22.00,
"rolling_stock_length":26.00
"stop_at_next_signal":false
}));

let pathfinding_result: PathfindingResult =
Expand Down Expand Up @@ -516,7 +517,8 @@ pub mod tests {
"rolling_stock_supported_electrifications":[],
"rolling_stock_supported_signaling_systems":["BAL","BAPR"],
"rolling_stock_maximum_speed":22.00,
"rolling_stock_length":26.00
"rolling_stock_length":26.00,
"stop_at_next_signal": false
}));

let pathfinding_result: PathfindingResult =
Expand Down Expand Up @@ -579,6 +581,7 @@ pub mod tests {
"rolling_stock_supported_signaling_systems":["BAL","BAPR"],
"rolling_stock_maximum_speed":22.00,
"rolling_stock_length":26.00
"stop_at_next_signal":false
}));

let pathfinding_result: PathfindingResult =
Expand Down

0 comments on commit 5a5ff11

Please sign in to comment.