Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update the test to make it more stable on multiple runs

  • Loading branch information...
commit b1d6999e4b2bb4cf8e2545fe32985b2e7f53d61c 1 parent 4fe850e
Timothy Bish tabish121 authored
8 activemq-cpp/src/test-integration/activemq/test/openwire/OpenwireEnhancedConnectionTest.cpp
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.