Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 committed Jan 24, 2024
1 parent 4d24df7 commit c244645
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/tests-dfx/deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,18 @@ teardown() {
install_cycles_ledger_canisters
dfx_start
assert_command dfx deploy fake-cmc --specified-id "rkp4c-7iaaa-aaaaa-aaaca-cai" # CMC canister id
cd ../e2e_project
cd ../hello

# use --subnet <principal>
SUBNET_ID="5kdm2-62fc6-fwnja-hutkz-ycsnm-4z33i-woh43-4cenu-ev7mi-gii6t-4ae" # a random, valid principal
assert_command dfx deploy e2e_project_backend --subnet "$SUBNET_ID"
assert_command dfx deploy hello_backend --subnet "$SUBNET_ID"
cd ../fake_cmc
assert_command dfx canister call fake-cmc last_create_canister_args
assert_contains "subnet = principal \"$SUBNET_ID\";"

# use --subnet-type
cd ../e2e_project
assert_command dfx deploy e2e_project_frontend --subnet-type custom_subnet_type
cd ../hello
assert_command dfx deploy hello_frontend --subnet-type custom_subnet_type
cd ../fake_cmc
assert_command dfx canister call fake-cmc last_create_canister_args
assert_contains 'subnet_type = opt "custom_subnet_type"'
Expand Down

0 comments on commit c244645

Please sign in to comment.