From 0cc7d9e5ac2d9d4e5fd7a1426ddd547b6dd39457 Mon Sep 17 00:00:00 2001 From: Erwan Or Date: Thu, 2 May 2024 09:23:19 -0400 Subject: [PATCH] pcli(integration): fix delegation token regex --- crates/bin/pcli/tests/network_integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bin/pcli/tests/network_integration.rs b/crates/bin/pcli/tests/network_integration.rs index 290f26e8f4..6c0c1c30bf 100644 --- a/crates/bin/pcli/tests/network_integration.rs +++ b/crates/bin/pcli/tests/network_integration.rs @@ -298,7 +298,7 @@ fn delegate_and_undelegate() { // need to pull the amount of delegation tokens we obtained so that we can later // try to execute an undelegation (`tx undelegate `). // To do this, we use a regex to extract the amount of delegation tokens we obtained: - let delegation_token_pattern = Regex::new(r"(\d+\.?\d?delegation_[a-zA-Z0-9]*)").unwrap(); + let delegation_token_pattern = Regex::new(r"(\d+\.?\d?m?delegation_[a-zA-Z0-9]*)").unwrap(); let (delegation_token_str, [_match]) = delegation_token_pattern .captures(&balance_output_string) .expect("can find delegation token in balance output")