Skip to content

Commit ac32d39

Browse files
authored
fix(e2e): fabricate cycles before setting high freezing threshold (#4526)
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.
1 parent 4aca856 commit ac32d39

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎e2e/tests-dfx/update_settings.bash‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ teardown() {
3333
assert_command_fail dfx canister update-settings hello_backend --freezing-threshold 100000000000
3434
assert_match "SECONDS" # error message pointing to the error
3535

36+
# fabricating 100T cycles onto it, so that it won't starve
37+
assert_command dfx ledger fabricate-cycles --canister hello_backend --t 100
38+
3639
# with manual override it's ok
3740
assert_command dfx canister update-settings hello_backend --freezing-threshold 100000000000 --confirm-very-long-freezing-threshold
3841

39-
# to check if threshold is set correctly we have to un-freeze the canister by adding cycles. Fabricating 100T cycles onto it
40-
assert_command dfx ledger fabricate-cycles --canister hello_backend --t 100
42+
# to check if threshold is set correctly we have to un-freeze the canister by adding cycles
4143
assert_command dfx canister status hello_backend
4244
assert_match "Freezing threshold: 100_000_000_000"
4345

0 commit comments

Comments
 (0)