diff --git a/src/test/java/net/openhft/chronicle/map/issue/ParallelStartupTest.java b/src/test/java/net/openhft/chronicle/map/issue/ParallelStartupTest.java index 97a2042312..9ef615ec50 100644 --- a/src/test/java/net/openhft/chronicle/map/issue/ParallelStartupTest.java +++ b/src/test/java/net/openhft/chronicle/map/issue/ParallelStartupTest.java @@ -1,5 +1,7 @@ package net.openhft.chronicle.map.issue; +import net.openhft.chronicle.core.OS; +import net.openhft.chronicle.core.io.IOTools; import net.openhft.chronicle.map.ChronicleMap; import net.openhft.chronicle.map.ChronicleMapBuilder; import net.openhft.chronicle.testframework.process.JavaProcessBuilder; @@ -10,10 +12,13 @@ import java.util.concurrent.atomic.AtomicInteger; import static org.junit.Assert.assertEquals; +import static org.junit.Assume.assumeFalse; public class ParallelStartupTest { @Test public void test() throws InterruptedException { + assumeFalse(OS.isWindows());//TODO: unstable on Windows + Process processOne = JavaProcessBuilder.create(ParallelStartupTest.class).start(); Process processTwo = JavaProcessBuilder.create(ParallelStartupTest.class).start(); @@ -29,7 +34,7 @@ public void test() throws InterruptedException { public static void main(String[] args) throws InterruptedException { try { - final File file = new File("issue342"); + final File file = IOTools.createTempFile("issue342"); Thread[] thread = new Thread[16]; AtomicInteger succ = new AtomicInteger(); for (int i = 0; i < thread.length; i++) {