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"