From f6d2aab57820382326d4a6c5ae00a9f7773f7019 Mon Sep 17 00:00:00 2001 From: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:22:22 -0700 Subject: [PATCH] fix --- .github/workflows/backend.yml | 4 ++-- service/pool/tests/canisterPool.test.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 335951af..5b0e1c9b 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -69,13 +69,13 @@ jobs: run: | (for f in service/pool/tests/*.test.sh; do echo "==== Run test $f ====" - ic-repl "$f" || exit + ic-repl -v "$f" || exit done) - name: Actor class test run: | cd ./service/pool/tests/actor_class dfx canister create --all dfx build - ic-repl ./test.sh + ic-repl -v ./test.sh - name: Stop dfx run: dfx stop diff --git a/service/pool/tests/canisterPool.test.sh b/service/pool/tests/canisterPool.test.sh index d407aaaf..c92d7ef8 100644 --- a/service/pool/tests/canisterPool.test.sh +++ b/service/pool/tests/canisterPool.test.sh @@ -21,8 +21,8 @@ read_state("canister", CID2.id, "module_hash"); let c1 = call S.deployCanister(null, opt record { arg = blob ""; wasm_module = empty_wasm; bypass_wasm_transform = opt true }); let c1 = c1[0]; call S.transferOwnership(c1, vec {c1.id; S}); -let c2 = call S.deployCanister(opt c1, opt record { arg = blob ""; wasm_module = empty_wasm; bypass_wasm_transform = opt true }); -assert c2[0].id != c1.id; +fail call S.deployCanister(opt c1, opt record { arg = blob ""; wasm_module = empty_wasm; bypass_wasm_transform = opt true }); +assert _ ~= "Cannot find canister"; let init = opt record { cycles_per_canister = 105_000_000_000;