We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed61a76 commit 0082c52Copy full SHA for 0082c52
editoast/src/fixtures.rs
@@ -4,6 +4,7 @@ pub mod tests {
4
use std::io::Cursor;
5
use std::ops::{Deref, DerefMut};
6
use std::sync::Arc;
7
+ use uuid::Uuid;
8
9
use editoast_models::create_connection_pool;
10
use editoast_models::DbConnection;
@@ -261,8 +262,7 @@ pub mod tests {
261
262
} = scenario_fixture_set().await;
263
264
let pathfinding = pathfinding(db_pool()).await;
- let mut rs_name = "fast_rolling_stock_".to_string();
265
- rs_name.push_str(name);
+ let rs_name = format!("fast_rolling_stock_{}_{name}", Uuid::new_v4()).to_string();
266
let rolling_stock = named_fast_rolling_stock(&rs_name, db_pool()).await;
267
let ts_model = make_train_schedule(
268
db_pool(),
0 commit comments