diff options
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/tests/client_test.cpp | 5 | ||||
| -rw-r--r-- | cpp/tests/topic_listener.cpp | 2 | ||||
| -rw-r--r-- | cpp/tests/topic_publisher.cpp | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/cpp/tests/client_test.cpp b/cpp/tests/client_test.cpp index 5fbacaae73..413523a6a7 100644 --- a/cpp/tests/client_test.cpp +++ b/cpp/tests/client_test.cpp @@ -72,8 +72,9 @@ int main(int argc, char**) Connection con(verbose); string host("localhost"); - con.open(host); - if (verbose) std::cout << "Opened connection." << std::endl; + con.open(host, 5672, "guest", "guest", "/test"); + if (verbose) + std::cout << "Opened connection." << std::endl; //Create and open a channel on the connection through which //most functionality is exposed diff --git a/cpp/tests/topic_listener.cpp b/cpp/tests/topic_listener.cpp index 0741571cd4..5f5500f7b9 100644 --- a/cpp/tests/topic_listener.cpp +++ b/cpp/tests/topic_listener.cpp @@ -104,7 +104,7 @@ int main(int argc, char** argv){ try{ cout << "topic_listener: Started." << endl; Connection connection(args.getTrace()); - connection.open(args.getHost(), args.getPort()); + connection.open(args.getHost(), args.getPort(), "guest", "guest", "/test"); Channel channel(args.getTransactional(), args.getPrefetch()); connection.openChannel(channel); diff --git a/cpp/tests/topic_publisher.cpp b/cpp/tests/topic_publisher.cpp index dedb88003a..0e6c63ab35 100644 --- a/cpp/tests/topic_publisher.cpp +++ b/cpp/tests/topic_publisher.cpp @@ -118,7 +118,7 @@ int main(int argc, char** argv) { } else { try{ Connection connection(args.getTrace()); - connection.open(args.getHost(), args.getPort()); + connection.open(args.getHost(), args.getPort(), "guest", "guest", "/test"); Channel channel(args.getTransactional(), args.getPrefetch()); connection.openChannel(channel); |
