Skip to content

Commit 3358f6d

Browse files
committed
f fix ordering jeff requested
1 parent 444c154 commit 3358f6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,13 +889,13 @@ macro_rules! expect_payment_failed {
889889
assert_eq!(events.len(), 1);
890890
match events[0] {
891891
Event::PaymentFailed { ref payment_hash, rejected_by_dest, ref error_code, ref error_data } => {
892-
assert_eq!($expected_payment_hash, *payment_hash, "unexpected payment_hash");
893-
assert_eq!($rejected_by_dest, rejected_by_dest, "unexpected rejected_by_dest value");
892+
assert_eq!(*payment_hash, $expected_payment_hash, "unexpected payment_hash");
893+
assert_eq!(rejected_by_dest, $rejected_by_dest, "unexpected rejected_by_dest value");
894894
assert!(error_code.is_some(), "expected error_code.is_some() = true");
895895
assert!(error_data.is_some(), "expected error_data.is_some() = true");
896896
$(
897-
assert_eq!($expected_error_code, error_code.unwrap(), "unexpected error code");
898-
assert_eq!($expected_error_data, &error_data.as_ref().unwrap()[..], "unexpected error data");
897+
assert_eq!(error_code.unwrap(), $expected_error_code, "unexpected error code");
898+
assert_eq!(&error_data.as_ref().unwrap()[..], $expected_error_data, "unexpected error data");
899899
)*
900900
},
901901
_ => panic!("Unexpected event"),

0 commit comments

Comments
 (0)