mirror of https://github.com/oxen-io/oxen-mq.git
Fix uninitialized value in post-start listen test
This commit is contained in:
parent
a0642a894e
commit
45db87f712
|
@ -134,7 +134,7 @@ TEST_CASE("post-start listening", "[connect][listen]") {
|
|||
server.add_category("x", AuthLevel::none)
|
||||
.add_request_command("y", [&](Message& m) { m.send_reply("hi", m.data[0]); });
|
||||
server.start();
|
||||
std::atomic<int> listens;
|
||||
std::atomic<int> listens = 0;
|
||||
auto listen_curve = random_localhost();
|
||||
server.listen_curve(listen_curve, nullptr, [&](bool success) { if (success) listens++; });
|
||||
auto listen_plain = random_localhost();
|
||||
|
|
Loading…
Reference in New Issue