Skip to content

Commit

Permalink
fix tests for time units
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev committed Oct 2, 2024
1 parent f3cd136 commit f59f861
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions primitives/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ mod tests {
assert_eq!(DAYS / 24, HOURS);
// 60 minuts in an hour
assert_eq!(HOURS / 60, MINUTES);
// 1 minute = 60s = 5 blocks 12s each
assert_eq!(MINUTES, 5);
// 1 minute = 60s = 10 blocks 6s each
assert_eq!(MINUTES, 10);
// 6s per block
assert_eq!(SECS_PER_BLOCK, 12);
assert_eq!(SECS_PER_BLOCK, 6);
// 1s = 1000ms
assert_eq!(MILLISECS_PER_BLOCK / 1000, SECS_PER_BLOCK);
// Extra check for epoch time because changing it bricks the block production and requires regenesis
Expand Down

0 comments on commit f59f861

Please sign in to comment.