Skip to content

Commit

Permalink
chore: log message logs number of times
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Nov 22, 2024
1 parent e47a139 commit dc310d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ register_checks! {
assert_eq!(post.election_identifiers.len(), 1, "Only one election should exist.");
},
hook_called_n_times(_pre, _post, n: u8) {
assert_eq!(HOOK_CALLED_COUNT.with(|hook_called| hook_called.get()), n, "Hook should have been called n so far!");
assert_eq!(HOOK_CALLED_COUNT.with(|hook_called| hook_called.get()), n, "Hook should have been called {n} times so far!");
},
}
}
Expand Down

0 comments on commit dc310d7

Please sign in to comment.