Skip to content

Commit 6fbac7a

Browse files
committed
fix broken tests after refactoring
1 parent 74f1767 commit 6fbac7a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

fuzz-tests/src/test_setup.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Manual changes are possible, but you still need to make sure they are not lost, if the file is regenerated.
33
// If possible, it is best to keep any additional manual test preparation steps outside, in `tests.rs`,
44
// then this file can be regenerated without risk of losing work.
5+
#![allow(dead_code)]
56

67
use ic_test::IcpTest;
78

ic-wasi-polyfill/tests/integration_tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ use candid::Principal;
22
use pocket_ic::PocketIc;
33
use std::{cell::RefCell, fs};
44

5-
const BACKEND_WASM: &str = "../test_canisters/canister_initial/target/wasm32-wasip1/release/canister_initial_backend_nowasi.wasm";
6-
const BACKEND_WASM_UPGRADED: &str = "../test_canisters/canister_upgraded/target/wasm32-wasip1/release/canister_upgraded_backend_nowasi.wasm";
5+
const BACKEND_WASM: &str = "../target/wasm32-wasip1/release/canister_initial_backend_nowasi.wasm";
6+
const BACKEND_WASM_UPGRADED: &str =
7+
"../target/wasm32-wasip1/release/canister_upgraded_backend_nowasi.wasm";
78

89
thread_local!(
910
static ACTIVE_CANISTER: RefCell<Option<Principal>> = const { RefCell::new(None) };
@@ -35,7 +36,7 @@ fn setup_initial_canister() -> PocketIc {
3536
setup_test_projects();
3637
let pic = PocketIc::new();
3738

38-
let wasm = fs::read(BACKEND_WASM).expect("Wasm file not found, run 'dfx build'.");
39+
let wasm = fs::read(BACKEND_WASM).expect("Wasm file not found.");
3940

4041
let backend_canister = pic.create_canister();
4142

@@ -53,8 +54,7 @@ fn setup_initial_canister() -> PocketIc {
5354
fn upgrade_canister(pic: &PocketIc) {
5455
setup_test_projects();
5556

56-
let wasm_upgraded =
57-
fs::read(BACKEND_WASM_UPGRADED).expect("Wasm file not found, run 'dfx build'.");
57+
let wasm_upgraded = fs::read(BACKEND_WASM_UPGRADED).expect("Wasm file not found.");
5858

5959
pic.upgrade_canister(active_canister(), wasm_upgraded, vec![], None)
6060
.unwrap();

test_canisters/fs_tests/src/fs_tests_backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ic-stable-structures.workspace = true
1818
ic-cdk.workspace = true
1919
anyhow.workspace = true
2020

21-
ic-wasi-polyfill = {workspace = true, features=["report_wasi_calls"]}
21+
ic-wasi-polyfill = {workspace = true, features=[]}
2222

2323
sha2 = "0.10"
2424

0 commit comments

Comments
 (0)