From 05d12cf226e6b8b7c05d2a3b2c3e39777d50f264 Mon Sep 17 00:00:00 2001 From: dsyer Date: Mon, 3 Nov 2008 08:23:22 +0000 Subject: [PATCH] Stop container before checking results --- .../org/springframework/batch/repeat/jms/AsynchronousTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java index 5e6c49296..9ddcda0a8 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java @@ -163,6 +163,8 @@ public class AsynchronousTests { // message... Thread.sleep(1000L); + container.stop(); + // We rolled back so the messages might come in many times... assertTrue(list.size() >= 1);