Skip to content

Commit c6d4b46

Browse files
committed
editoast: de-fixture train_with_simulation_output_fixture_set
1 parent 021f38c commit c6d4b46

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

editoast/src/fixtures.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,6 @@ pub mod tests {
389389

390390
#[fixture]
391391
pub async fn train_with_simulation_output_fixture_set(
392-
#[future] db_pool: Data<DbPool>,
393-
#[future] pathfinding: TestFixture<Pathfinding>,
394-
#[future] fast_rolling_stock: TestFixture<RollingStockModel>,
395392
) -> TrainScheduleWithSimulationOutputFixtureSet {
396393
let ScenarioFixtureSet {
397394
project,
@@ -400,9 +397,9 @@ pub mod tests {
400397
timetable,
401398
infra,
402399
} = scenario_fixture_set().await;
403-
let pathfinding = pathfinding.await;
404-
let rolling_stock = fast_rolling_stock.await;
405-
let db_pool = db_pool.await;
400+
let rolling_stock = fast_rolling_stock(db_pool()).await;
401+
let pathfinding = pathfinding(db_pool()).await;
402+
let db_pool = db_pool().await;
406403
let train_schedule = make_train_schedule(
407404
db_pool.clone(),
408405
pathfinding.id(),

0 commit comments

Comments
 (0)