activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject git commit: update the test to make it more stable on multiple runs
Date Tue, 03 Dec 2013 16:56:55 GMT
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 <tabish121@gmai.com>
Authored: Tue Dec 3 11:56:46 2013 -0500
Committer: Timothy Bish <tabish121@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();


Mime
View raw message