Skip to content

Commit e8195fb

Browse files
committed
simln-lib/test: remove unnecessary inline comments
1 parent 09c63b0 commit e8195fb

1 file changed

Lines changed: 6 additions & 24 deletions

File tree

simln-lib/src/lib.rs

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,15 +2138,9 @@ mod tests {
21382138

21392139
let (shutdown_trigger, shutdown_listener) = triggered::trigger();
21402140

2141-
// Create simulation without a timeout
2141+
// Create simulation without a timeout.
21422142
let simulation = Simulation::new(
2143-
SimulationCfg::new(
2144-
None, // without timeout
2145-
100, // Expected payment size
2146-
2.0, // Activity multiplier
2147-
None, // No result writing
2148-
None, // Seed for determinism
2149-
),
2143+
SimulationCfg::new(None, 100, 2.0, None, None),
21502144
clients,
21512145
TaskTracker::new(),
21522146
Arc::new(SystemClock {}),
@@ -2212,15 +2206,9 @@ mod tests {
22122206

22132207
let (shutdown_trigger, shutdown_listener) = triggered::trigger();
22142208

2215-
// Create simulation with a defined seed
2209+
// Create simulation with a defined seed.
22162210
let simulation = Simulation::new(
2217-
SimulationCfg::new(
2218-
Some(25), // 25 second timeout (shouldn't matter)
2219-
100, // Expected payment size
2220-
2.0, // Activity multiplier
2221-
None, // No result writing
2222-
Some(42), // Seed for determinism
2223-
),
2211+
SimulationCfg::new(Some(25), 100, 2.0, None, Some(42)),
22242212
clients.clone(),
22252213
TaskTracker::new(),
22262214
Arc::new(SystemClock {}),
@@ -2252,15 +2240,9 @@ mod tests {
22522240

22532241
let (shutdown_trigger, shutdown_listener) = triggered::trigger();
22542242

2255-
// Create the same simulation as before but with different seed
2243+
// Create the same simulation as before but with different seed.
22562244
let simulation2 = Simulation::new(
2257-
SimulationCfg::new(
2258-
Some(25), // 25 second timeout
2259-
100, // Expected payment size
2260-
2.0, // Activity multiplier
2261-
None, // No result writing
2262-
Some(500), // different seed
2263-
),
2245+
SimulationCfg::new(Some(25), 100, 2.0, None, Some(500)),
22642246
clients,
22652247
TaskTracker::new(),
22662248
Arc::new(SystemClock {}),

0 commit comments

Comments
 (0)