From aba48caf858caa1c305ffe87f43d907400b4db30 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Fri, 17 Apr 2026 03:09:53 +0200 Subject: [PATCH] fix(e2e): fabricate cycles before setting high freezing threshold The new replica requires more cycles to sustain an extreme freezing threshold (100B). Top up the canister before update-settings so it doesn't freeze and reject subsequent calls. --- e2e/tests-dfx/update_settings.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e2e/tests-dfx/update_settings.bash b/e2e/tests-dfx/update_settings.bash index e3ec97522a..493af46ba2 100644 --- a/e2e/tests-dfx/update_settings.bash +++ b/e2e/tests-dfx/update_settings.bash @@ -33,11 +33,13 @@ teardown() { assert_command_fail dfx canister update-settings hello_backend --freezing-threshold 100000000000 assert_match "SECONDS" # error message pointing to the error + # fabricating 100T cycles onto it, so that it won't starve + assert_command dfx ledger fabricate-cycles --canister hello_backend --t 100 + # with manual override it's ok assert_command dfx canister update-settings hello_backend --freezing-threshold 100000000000 --confirm-very-long-freezing-threshold - # to check if threshold is set correctly we have to un-freeze the canister by adding cycles. Fabricating 100T cycles onto it - assert_command dfx ledger fabricate-cycles --canister hello_backend --t 100 + # to check if threshold is set correctly we have to un-freeze the canister by adding cycles assert_command dfx canister status hello_backend assert_match "Freezing threshold: 100_000_000_000"