Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions e2e/tests-dfx/update_settings.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading