Permalink
Browse files

update the test to make it more stable on multiple runs

  • Loading branch information...
1 parent 4fe850e commit b1d6999e4b2bb4cf8e2545fe32985b2e7f53d61c @tabish121 tabish121 committed Dec 3, 2013
@@ -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();

0 comments on commit b1d6999

Please sign in to comment.