Skip to content

Commit

Permalink
Disable flaky test in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenp committed Nov 3, 2023
1 parent 79f6c10 commit 520a766
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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();

Expand All @@ -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++) {
Expand Down

0 comments on commit 520a766

Please sign in to comment.