Skip to content

Commit e648b1f

Browse files
committed
(PCP-906) Add test that sets a websocket logstream
1 parent 0f890fb commit e648b1f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/tests/unit/connector/connection_test.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
#include <cpp-pcp-client/util/chrono.hpp>
1212

13+
#include <boost/nowide/iostream.hpp>
14+
15+
#define LEATHERMAN_LOGGING_NAMESPACE "puppetlabs.cpp_pcp_client.test"
16+
#include <leatherman/logging/logging.hpp>
17+
1318
#include <leatherman/util/timer.hpp>
1419

1520
#include <memory>
@@ -36,8 +41,9 @@ TEST_CASE("Connection::connect errors", "[connection]") {
3641

3742
TEST_CASE("Connection timings", "[connection]") {
3843
ClientMetadata c_m { "test_client", getCaPath(), getCertPath(),
39-
getKeyPath(), WS_TIMEOUT_MS,
40-
PONG_TIMEOUTS_BEFORE_RETRY, PONG_LONG_TIMEOUT_MS };
44+
getKeyPath(), std::string{}, std::string{},
45+
leatherman::logging::log_level::error, &boost::nowide::cout,
46+
WS_TIMEOUT_MS, PONG_TIMEOUTS_BEFORE_RETRY, PONG_LONG_TIMEOUT_MS };
4147

4248
SECTION("can stringify timings") {
4349
Connection connection { "wss://localhost:8142/pcp", c_m };

0 commit comments

Comments
 (0)