Skip to content

Commit

Permalink
Build the wasm, as use asset doesn't provide the wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Nov 3, 2023
1 parent a30079d commit ee8f7f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests-dfx/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@ teardown() {

@test "installing one canister with an argument succeeds" {
dfx_start
use_asset_wasm 0.12.1
assert_command dfx build e2e_project_backend
assert_command dfx canister create e2e_project_backend
assert_command dfx canister install e2e_project_backend --argument '()'
}

@test "installing with an argument in a file succeeds" {
dfx_start
use_asset_wasm 0.12.1
assert_command dfx build e2e_project_backend
TMPFILE="$(mktemp)"
echo '()' >"$TMPFILE"
assert_command dfx canister create e2e_project_backend
Expand All @@ -201,4 +201,4 @@ teardown() {
@test "installing multiple canisters with arguments fails" {
assert_command_fail dfx canister install --all --argument '()'
assert_contains "error: the argument '--all' cannot be used with '--argument <ARGUMENT>'"
}
}

0 comments on commit ee8f7f7

Please sign in to comment.