From 4fa3c8f0c1daca00b0b705b18f88cc4a43d76ed3 Mon Sep 17 00:00:00 2001 From: Rachit Sonthalia Date: Tue, 17 Sep 2024 10:38:46 +0530 Subject: [PATCH] fix: tests --- test/basic-e2e.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/basic-e2e.bats b/test/basic-e2e.bats index 135acc43..84892e80 100644 --- a/test/basic-e2e.bats +++ b/test/basic-e2e.bats @@ -22,14 +22,14 @@ setup() { # case 2: Transaction rejected sender attempts to transfer more than they have in their wallet # Trx will fail pre validation check on the node and will be dropped subsequently from the pool # without recording it on the chain and hence nonce will not change - local sender_balance=$(rpcQuery "balance" --ether "$senderAddr") || return 1 + local sender_balance=$(rpcQuery "balance" "--ether" "$senderAddr") || return 1 local excessive_value=$(echo "$sender_balance + 1" | bc)ether run sendTx "$private_key" "$receiver" "$excessive_value" - assert_failure "Transaction should fail when attempting to transfer more than the sender's balance" + assert_failure "Transaction should fail when attempting to transfer more than the sender balance" # check wheather nonce of sender was updated correctly or not local final_nonce=$(rpcQuery "nonce" "$senderAddr") || return 1 - assert_equal "$final_nonce" "$(echo "$initial_nonce + 1" | bc)" "Error: nonce not updated correctly" + assert_equal "$final_nonce" "$(echo "$initial_nonce + 1" | bc)" "Error nonce not updated correctly" } @test "Deploy ERC20Mock contract" {