diff --git a/src/test/java/net/openhft/chronicle/map/MemoryLeaksTest.java b/src/test/java/net/openhft/chronicle/map/MemoryLeaksTest.java index b6d0b6fdc..5d3766e56 100644 --- a/src/test/java/net/openhft/chronicle/map/MemoryLeaksTest.java +++ b/src/test/java/net/openhft/chronicle/map/MemoryLeaksTest.java @@ -41,6 +41,7 @@ import java.util.stream.Collectors; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; +import static org.junit.Assume.assumeFalse; @RunWith(Parameterized.class) public class MemoryLeaksTest { @@ -100,9 +101,8 @@ public class MemoryLeaksTest { } @Test(timeout = 10_000) - public void testChronicleMapCollectedAndDirectMemoryReleased() - throws IOException, InterruptedException { - assertFalse(OS.isMacOSX()); + public void testChronicleMapCollectedAndDirectMemoryReleased() throws IOException { + assumeFalse(OS.isMacOSX()); // This test is flaky in Linux and Mac OS apparently because some native memory from // running previous/concurrent tests is released during this test, that infers with // the (*) check below. The aim of this test is to check that native memory is not