From 6c782c00902e9859b0ea05b7bbf59a7c4ebb6796 Mon Sep 17 00:00:00 2001 From: Mees Delzenne Date: Mon, 29 Jan 2024 17:23:43 +0100 Subject: [PATCH] Small change to the test --- core/src/allocator/rust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/allocator/rust.rs b/core/src/allocator/rust.rs index 43e1c24f..eb2d781a 100644 --- a/core/src/allocator/rust.rs +++ b/core/src/allocator/rust.rs @@ -179,6 +179,6 @@ mod test { // every object takes atleast a single byte. // So the gc must have collected atleast some of the recursive objects if the difference is // smaller then number of objects created. - assert!(before.abs_diff(after) < 100_000) + assert!(after.saturating_sub(before) < 100_000) } }