Blame disruptor-3.3.2-jmock.patch

0bef52f
--- disruptor-3.3.2/src/test/java/com/lmax/disruptor/BatchEventProcessorTest.java	2015-02-25 10:09:57.000000000 +0100
0bef52f
+++ disruptor-3.3.2/src/test/java/com/lmax/disruptor/BatchEventProcessorTest.java.jmock	2015-06-03 15:52:43.997446568 +0200
0bef52f
@@ -23,6 +23,7 @@
0bef52f
 import org.jmock.api.Action;
0bef52f
 import org.jmock.api.Invocation;
0bef52f
 import org.jmock.integration.junit4.JMock;
0bef52f
+import org.jmock.lib.concurrent.Synchroniser;
0bef52f
 import org.junit.Test;
0bef52f
 import org.junit.runner.RunWith;
0bef52f
 
0bef52f
@@ -35,7 +36,9 @@
0bef52f
 @RunWith(JMock.class)
0bef52f
 public final class BatchEventProcessorTest
0bef52f
 {
0bef52f
-    private final Mockery context = new Mockery();
0bef52f
+    private final Mockery context = new Mockery() {{
0bef52f
+        setThreadingPolicy(new Synchroniser());
0bef52f
+    }};
0bef52f
     private final Sequence lifecycleSequence = context.sequence("lifecycleSequence");
0bef52f
     private final CountDownLatch latch = new CountDownLatch(1);
0bef52f