Skip to content

Commit 1b7f653

Browse files
committed
chore: clean comments
1 parent dadfa76 commit 1b7f653

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

rust/cardano-chain-follower/src/network.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ mod tests {
254254
.timestamp_opt(i64::try_from(genesis.byron_known_time).unwrap() - 1, 0)
255255
.unwrap();
256256

257-
// Expect None for time before the blockchain started
258257
assert_eq!(network.time_to_slot(before_blockchain), None);
259258
}
260259

@@ -268,11 +267,10 @@ mod tests {
268267
.unwrap();
269268
let byron_slot_length = i64::from(genesis.byron_slot_length);
270269

271-
// A time in the middle of the Byron era
270+
// a time in the middle of the Byron era.
272271
let time = byron_start_time + chrono::Duration::seconds(byron_slot_length * 100);
273272
let expected_slot = genesis.byron_known_slot + 100;
274273

275-
// Expect the correct slot for the given time
276274
assert_eq!(network.time_to_slot(time), Some(expected_slot));
277275
}
278276

@@ -286,7 +284,7 @@ mod tests {
286284
.unwrap();
287285
let byron_slot_length = i64::from(genesis.byron_slot_length);
288286

289-
// A time just before Shelley era starts
287+
// a time just before Shelley era starts.
290288
let time = shelley_start_time - chrono::Duration::seconds(1);
291289
let elapsed_slots = (time
292290
- Utc
@@ -296,7 +294,6 @@ mod tests {
296294
/ byron_slot_length;
297295
let expected_slot = genesis.byron_known_slot + u64::try_from(elapsed_slots).unwrap();
298296

299-
// Expect the slot to be in the Byron era
300297
assert_eq!(network.time_to_slot(time), Some(expected_slot));
301298
}
302299

@@ -310,11 +307,10 @@ mod tests {
310307
.unwrap();
311308
let shelley_slot_length = i64::from(genesis.shelley_slot_length);
312309

313-
// A time in the middle of the Shelley era
310+
// a time in the middle of the Shelley era.
314311
let time = shelley_start_time + chrono::Duration::seconds(shelley_slot_length * 200);
315312
let expected_slot = genesis.shelley_known_slot + 200;
316313

317-
// Expect the correct slot for the given time
318314
assert_eq!(network.time_to_slot(time), Some(expected_slot));
319315
}
320316
}

0 commit comments

Comments
 (0)