Skip to content

Commit

Permalink
utils: prints the events when the assert is failing.
Browse files Browse the repository at this point in the history
This will improve the quality of the error messages when a test is failing.

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Dec 22, 2024
1 parent 29555f9 commit 881d86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/functional_test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ macro_rules! get_event {
($node: expr, $event_type: path) => {
{
let mut events = $node.node.get_and_clear_pending_events();
assert_eq!(events.len(), 1);
assert_eq!(events.len(), 1, "events: {:?}", events);
let ev = events.pop().unwrap();
match ev {
$event_type { .. } => {
Expand Down

0 comments on commit 881d86d

Please sign in to comment.