From 9600d4de07458d754541d61b0c571ebbd2a04827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Wed, 18 Sep 2024 14:32:13 +0200 Subject: [PATCH] fix: trim the receiver_balance var --- test/basic-e2e.bats | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/basic-e2e.bats b/test/basic-e2e.bats index 2489b73f..df94242f 100644 --- a/test/basic-e2e.bats +++ b/test/basic-e2e.bats @@ -86,9 +86,12 @@ setup() { # Assert that balance of gas token (on the L1) is correct run queryContract "$l1_rpc_url" "$gas_token_addr" "$balance_of_fn_sig" "$receiver" assert_success - local receiver_balance=$(echo "$output" | tail -n 1) + local receiver_balance=$(echo "$output" | + tail -n 1 | + awk '{print $1}') local expected_balance=$(echo "$initial_receiver_balance + $wei_amount" | - bc | sed 's/ .*//') + bc | + awk '{print $1}') echo "Receiver balance: $receiver_balance" >&3 assert_equal "$receiver_balance" "$expected_balance"