From 61e2216041ddd97556d9fbca24a8f7788a908f8b Mon Sep 17 00:00:00 2001 From: Stan Bondi Date: Tue, 27 Aug 2024 12:03:09 +0400 Subject: [PATCH] better error when failed to register in integration tests --- integration_tests/tests/steps/validator_node.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/integration_tests/tests/steps/validator_node.rs b/integration_tests/tests/steps/validator_node.rs index 02bcd69eb..331527467 100644 --- a/integration_tests/tests/steps/validator_node.rs +++ b/integration_tests/tests/steps/validator_node.rs @@ -168,8 +168,13 @@ pub async fn send_vn_registration_with_claim_wallet(world: &mut TariWorld, vn_na message: "Register".to_string(), }) .await - .unwrap(); - assert!(response.into_inner().transaction_id != 0); + .unwrap() + .into_inner(); + assert!( + response.is_success, + "Failed to register validator node {}", + response.failure_message + ); world.mark_point_in_logs("after register_validator_node"); }