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