fixed bad test case that creates 2 connections with the same clientID

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366215 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-01-05 16:38:14 +00:00
parent d7f91463d6
commit f9db4423b1
1 changed files with 1 additions and 2 deletions

View File

@ -340,9 +340,8 @@ abstract public class DurableSubscriptionTestSupport extends TestSupport {
// See if the durable sub works in a new connection. // See if the durable sub works in a new connection.
// The embeded broker shutsdown when his connections are closed. // The embeded broker shutsdown when his connections are closed.
// So we open the new connection before the old one is closed. // So we open the new connection before the old one is closed.
Connection t = createConnection();
connection.close(); connection.close();
connection = t; connection = createConnection();
connection.start(); connection.start();
session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE); session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);