Skip to content

Commit

Permalink
Add output to manual #29 test
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 7, 2024
1 parent fce4938 commit 95026bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/java/failing/ManualIssue29Repro.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ public class ManualIssue29Repro implements Runnable
private static XMLEventAllocator allocator = EventAllocatorImpl.getDefaultInstance();
private static AsyncXMLInputFactory inputFactory = new InputFactoryImpl();

public static void main(String[] args) throws InterruptedException {
public static void main(String[] args) throws InterruptedException
{
System.out.println("Starting test...");
ExecutorService ex = Executors.newFixedThreadPool(NUM_THREADS);

for (int i = 0; i < 100000; i++) {
ex.submit(new ManualIssue29Repro(i));
}

System.out.println("Stopping test...");
ex.shutdown();
ex.awaitTermination(Integer.MAX_VALUE, TimeUnit.SECONDS);
System.out.println("Completed: SUCCESS");
}

private final int count;
Expand Down

0 comments on commit 95026bf

Please sign in to comment.