File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
activemq-unit-tests/src/test/java/org/apache/activemq/usecases Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2626import org .apache .activemq .command .ActiveMQQueue ;
2727import org .apache .activemq .usage .SystemUsage ;
2828import org .apache .activemq .util .DefaultTestAppender ;
29+ import org .apache .activemq .util .Wait ;
2930import org .apache .logging .log4j .Level ;
3031import org .apache .logging .log4j .LogManager ;
3132import org .apache .logging .log4j .core .LogEvent ;
@@ -154,6 +155,8 @@ public void append(LogEvent event) {
154155
155156 try {
156157
158+ assertTrue ("Timed out waiting for cursor to block" , Wait .waitFor (() -> gotExpectedLogEvent .get ()));
159+
157160 MessageConsumer noDispatchConsumer = consumerSession .createConsumer (shouldBeStuckForDispatch );
158161
159162 Message m = noDispatchConsumer .receive (messageReceiveTimeout );
You can’t perform that action at this time.
0 commit comments