Skip to content

Commit 9d15443

Browse files
committed
Test fixes
1 parent b3ff982 commit 9d15443

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

benches/instantiation.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ fn bench_parallel(c: &mut Criterion) {
3535

3636
for strategy in common::strategies() {
3737
let engine = common::make_engine(&strategy, false).unwrap();
38-
let (module, linker) =
39-
common::load_module(&engine, "benches/instantiation/wasi.wasm").unwrap();
38+
let (module, linker) = common::load_module(&engine, "wasi.wasm").unwrap();
4039

4140
for threads in 1..=num_cpus::get_physical() {
4241
let pool = ThreadPoolBuilder::new()

crates/runtime/src/instance/allocator/pooling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,7 @@ mod test {
18131813
assert_eq!(pool.max_instances, 5);
18141814
assert_eq!(pool.max_wasm_pages, 1);
18151815

1816-
let base = pool.mapping.as_ptr() as usize;
1816+
let base = pool.backing.as_mmap().as_ptr() as usize;
18171817

18181818
for i in 0..5 {
18191819
let mut iter = pool.get(i);

0 commit comments

Comments
 (0)