You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/12/03 17:56:55 UTC

git commit: update the test to make it more stable on multiple runs

Updated Branches:
  refs/heads/trunk 4fe850eab -> b1d6999e4


update the test to make it more stable on multiple runs

Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/b1d6999e
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/b1d6999e
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/b1d6999e

Branch: refs/heads/trunk
Commit: b1d6999e4b2bb4cf8e2545fe32985b2e7f53d61c
Parents: 4fe850e
Author: Timothy Bish <ta...@gmai.com>
Authored: Tue Dec 3 11:56:46 2013 -0500
Committer: Timothy Bish <ta...@gmai.com>
Committed: Tue Dec 3 11:56:46 2013 -0500

----------------------------------------------------------------------
 .../test/openwire/OpenwireEnhancedConnectionTest.cpp         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/b1d6999e/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireEnhancedConnectionTest.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireEnhancedConnectionTest.cpp b/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireEnhancedConnectionTest.cpp
index d7f4f3b..7b24d5a 100644
--- a/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireEnhancedConnectionTest.cpp
+++ b/activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireEnhancedConnectionTest.cpp
@@ -162,10 +162,10 @@ void OpenwireEnhancedConnectionTest::testDestinationSourceGetters() {
     int currentTempQueueCount = listener.tempQueueCount;
     int currentTempTopicCount = listener.tempTopicCount;
 
-    std::auto_ptr<Destination> destination1( session->createTopic("Test.Topic") );
-    std::auto_ptr<MessageConsumer> consumer1( session->createConsumer( destination1.get() ) );
-    std::auto_ptr<Destination> destination2( session->createQueue("Test.Queue") );
-    std::auto_ptr<MessageConsumer> consumer2( session->createConsumer( destination2.get() ) );
+    std::auto_ptr<Destination> destination1(session->createTopic(UUID::randomUUID().toString()));
+    std::auto_ptr<MessageConsumer> consumer1(session->createConsumer(destination1.get()));
+    std::auto_ptr<Destination> destination2(session->createQueue(UUID::randomUUID().toString()) );
+    std::auto_ptr<MessageConsumer> consumer2(session->createConsumer(destination2.get()));
 
     consumer1->close();
     consumer2->close();