From 4cfdfc4598ae07f96f07e40e19cbb3e81594b5ff Mon Sep 17 00:00:00 2001 From: Tyler Rockwood Date: Tue, 10 Oct 2023 13:19:24 -0500 Subject: [PATCH] fix allocator test Signed-off-by: Tyler Rockwood --- crates/runtime/src/instance/allocator/pooling/stack_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {