Skip to content

Commit

Permalink
Add the e2e test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-dfinity committed Feb 27, 2025
1 parent 18ae2b0 commit bb366cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions e2e/tests-dfx/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ teardown() {
dfx_start
dfx canister create --all
assert_command dfx build
assert_contains "Building canisters..."
assert_contains "Building canister 'e2e_project_backend'"
assert_contains "Finished building canisters."
}

@test "build succeeds if enable optimize" {
Expand Down
2 changes: 1 addition & 1 deletion src/dfx/src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn exec(env: &dyn Environment, opts: CanisterBuildOpts) -> DfxResult {
.with_env_file(env_file);
runtime.block_on(canister_pool.build_or_fail(&env, logger, &build_config))?;

slog::info!(logger, "Fnished building canisters.");
slog::info!(logger, "Finished building canisters.");

Ok(())
}

0 comments on commit bb366cf

Please sign in to comment.