From 60c5f75b5bf485f072b2ee14f038fdc7eda2569f Mon Sep 17 00:00:00 2001 From: Bernardo Ramos Date: Tue, 30 Jan 2024 15:45:41 +0000 Subject: [PATCH] fix integration tests --- tests/test-contract-deploy.sh | 10 +++++----- tests/test-gas-bf.sh | 2 +- tests/test-gas-deploy.sh | 2 +- tests/test-gas-op.sh | 2 +- tests/test-gas-per-function-v4.sh | 2 +- tests/test-gas-verify-proof.sh | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/test-contract-deploy.sh b/tests/test-contract-deploy.sh index 8774a6e93..755ac0c37 100755 --- a/tests/test-contract-deploy.sh +++ b/tests/test-contract-deploy.sh @@ -57,7 +57,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" #assert_equals "$gasUsed" "117861" @@ -74,7 +74,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" #assert_equals "$gasUsed" "117861" @@ -91,7 +91,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" #assert_equals "$gasUsed" "117861" @@ -108,7 +108,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" #assert_equals "$gasUsed" "117861" @@ -125,5 +125,5 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" #assert_equals "$gasUsed" "117861" diff --git a/tests/test-gas-bf.sh b/tests/test-gas-bf.sh index 252231d28..21cdbe41b 100755 --- a/tests/test-gas-bf.sh +++ b/tests/test-gas-bf.sh @@ -29,7 +29,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" if [ "$fork_version" -eq "4" ]; then assert_equals "$gasUsed" "57105265" diff --git a/tests/test-gas-deploy.sh b/tests/test-gas-deploy.sh index 21cc42d43..0f2621081 100755 --- a/tests/test-gas-deploy.sh +++ b/tests/test-gas-deploy.sh @@ -29,7 +29,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" if [ "$fork_version" -eq "4" ]; then assert_equals "$gasUsed" "118350" diff --git a/tests/test-gas-op.sh b/tests/test-gas-op.sh index 6ee1cc2d5..668f75df7 100755 --- a/tests/test-gas-op.sh +++ b/tests/test-gas-op.sh @@ -29,7 +29,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" if [ "$fork_version" -eq "4" ]; then assert_equals "$gasUsed" "130048" diff --git a/tests/test-gas-per-function-v4.sh b/tests/test-gas-per-function-v4.sh index 0d8a95978..6293c517b 100755 --- a/tests/test-gas-per-function-v4.sh +++ b/tests/test-gas-per-function-v4.sh @@ -30,7 +30,7 @@ status=$(cat receipt.json | jq .status | sed 's/"//g') ret=$(cat receipt.json | jq .ret | sed 's/"//g') assert_equals "$status" "SUCCESS" -assert_equals "$ret" "{}" +assert_equals "$ret" "" echo "-- get account's nonce --" diff --git a/tests/test-gas-verify-proof.sh b/tests/test-gas-verify-proof.sh index 877cf9aa1..6093f9035 100755 --- a/tests/test-gas-verify-proof.sh +++ b/tests/test-gas-verify-proof.sh @@ -29,7 +29,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" if [ "$fork_version" -eq "4" ]; then assert_equals "$gasUsed" "160281" @@ -51,7 +51,7 @@ ret=$(cat receipt.json | jq .ret | sed 's/"//g') gasUsed=$(cat receipt.json | jq .gasUsed | sed 's/"//g') assert_equals "$status" "SUCCESS" -#assert_equals "$ret" "{}" +#assert_equals "$ret" "" if [ "$fork_version" -eq "4" ]; then assert_equals "$gasUsed" "108404"