From dc310d7abbf943766ac304acc55693d682338092 Mon Sep 17 00:00:00 2001 From: kylezs Date: Fri, 22 Nov 2024 10:41:15 +0100 Subject: [PATCH] chore: log message logs number of times --- .../cf-elections/src/electoral_systems/tests/liveness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state-chain/pallets/cf-elections/src/electoral_systems/tests/liveness.rs b/state-chain/pallets/cf-elections/src/electoral_systems/tests/liveness.rs index 60d00e9875..f5a7132cf2 100644 --- a/state-chain/pallets/cf-elections/src/electoral_systems/tests/liveness.rs +++ b/state-chain/pallets/cf-elections/src/electoral_systems/tests/liveness.rs @@ -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!"); }, } }