diff --git a/crates/runtime/src/instance/allocator/pooling/stack_pool.rs b/crates/runtime/src/instance/allocator/pooling/stack_pool.rs index 8265cfcf94a7..edb169f348da 100644 --- a/crates/runtime/src/instance/allocator/pooling/stack_pool.rs +++ b/crates/runtime/src/instance/allocator/pooling/stack_pool.rs @@ -213,7 +213,7 @@ mod tests { assert_eq!(pool.index_allocator.testing_freelist(), []); - pool.allocate().unwrap_err(); + assert!(pool.allocate().is_err(), "allocation should fail"); for stack in stacks { unsafe {