From 97d00646b3d1bb4c8e866ccebdf2ad52df1b09d8 Mon Sep 17 00:00:00 2001 From: Eric Swanson Date: Wed, 13 Nov 2024 10:09:21 -0800 Subject: [PATCH] fix failures caused by increased cycles cost --- e2e/tests-dfx/call.bash | 1 + e2e/tests-dfx/playground.bash | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/e2e/tests-dfx/call.bash b/e2e/tests-dfx/call.bash index 0454cb68ad..8122d77868 100644 --- a/e2e/tests-dfx/call.bash +++ b/e2e/tests-dfx/call.bash @@ -199,6 +199,7 @@ teardown() { dfx canister create --all dfx build dfx canister install hello_backend + [[ "$USE_POCKETIC" ]] && dfx ledger fabricate-cycles --t 9999999 --canister hello_backend assert_command dfx canister call hello_backend recurse 100 } diff --git a/e2e/tests-dfx/playground.bash b/e2e/tests-dfx/playground.bash index 5d8d3630ff..1fb928006f 100644 --- a/e2e/tests-dfx/playground.bash +++ b/e2e/tests-dfx/playground.bash @@ -27,6 +27,7 @@ setup_playground() { dfx_start dfx deploy backend dfx ledger fabricate-cycles --t 9999999 --canister backend + PLAYGROUND_CANISTER_ID=$(dfx canister id backend) export PLAYGROUND_CANISTER_ID echo "PLAYGROUND_CANISTER_ID is $PLAYGROUND_CANISTER_ID" @@ -45,6 +46,10 @@ setup_playground() { } @test "canister lifecycle" { + assert_command dfx canister create --all --playground + [[ "$USE_POCKETIC" ]] && dfx ledger fabricate-cycles --t 9999999 --canister hello_backend --playground + [[ "$USE_POCKETIC" ]] && dfx ledger fabricate-cycles --t 9999999 --canister hello_frontend --playground + assert_command dfx deploy --playground assert_command dfx canister --playground call hello_backend greet '("player")' assert_match "Hello, player!" @@ -87,6 +92,10 @@ setup_playground() { # If the hashes didn't match then the playground would attempt to # instrument the asset canister during upload which would run into execution limits. @test "playground-installed asset canister is same wasm as normal asset canister" { + assert_command dfx canister create --all --playground + [[ "$USE_POCKETIC" ]] && dfx ledger fabricate-cycles --t 9999999 --canister hello_backend --playground + [[ "$USE_POCKETIC" ]] && dfx ledger fabricate-cycles --t 9999999 --canister hello_frontend --playground + assert_command dfx deploy --playground PLAYGROUND_HASH=$(dfx canister --playground info hello_frontend | grep hash) echo "PLAYGROUND_HASH: ${PLAYGROUND_HASH}"