clear the list after the sleep so that any left over messages are drained.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@387632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-03-21 21:44:15 +00:00
parent 12cea50f15
commit a255628557
1 changed files with 2 additions and 1 deletions

View File

@ -103,9 +103,10 @@ public class JmsSendReceiveTestSupport extends TestSupport implements MessageLis
* @throws Exception
*/
public void testSendReceive() throws Exception {
Thread.sleep(1000);
messages.clear();
Thread.sleep(1000);
for (int i = 0; i < data.length; i++) {
Message message = session.createTextMessage(data[i]);
if (verbose) {