diff --git a/test/bridge-e2e.bats b/test/bridge-e2e.bats index 9a8c2f13..0902a332 100644 --- a/test/bridge-e2e.bats +++ b/test/bridge-e2e.bats @@ -79,7 +79,7 @@ setup() { # Query for initial sender balance run queryContract "$l1_rpc_url" "$gas_token_addr" "$balance_of_fn_sig" "$sender_addr" assert_success - local gas_token_init_sender_balance=$(echo "$output" | tail -n 1) + local gas_token_init_sender_balance=$(echo "$output" | tail -n 1 | awk '{print $1}') echo "Initial sender balance $gas_token_init_sender_balance" of gas token on L1 >&3 # Mint gas token on L1 @@ -95,7 +95,11 @@ setup() { local gas_token_final_sender_balance=$(echo "$output" | tail -n 1 | awk '{print $1}') - local expected_balance=$(echo "$gas_token_init_sender_balance + $wei_amount" | bc) + local expected_balance=$( + echo "$gas_token_init_sender_balance + $wei_amount" | + bc | + awk '{print $1}' + ) echo "Sender balance ($sender_addr) (gas token L1): $gas_token_final_sender_balance" >&3 assert_equal "$gas_token_final_sender_balance" "$expected_balance"