Skip to content
Snippets Groups Projects
Commit b98fbcc6 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Debug output for net test

parent b725c7fa
No related branches found
No related tags found
No related merge requests found
......@@ -538,6 +538,7 @@ bool Peer::waitConnection(int s) {
});
cv.wait_for(lk, seconds(s), [this]() { return status_ == NodeStatus::kConnected;});
LOG(ERROR) << "CONN STAT = " << int(status_);
return status_ == NodeStatus::kConnected;
}
......
......@@ -76,7 +76,7 @@ TEST_CASE("Listen and Connect", "[net]") {
bool disconnected_once = false;
auto h = ftl::getSelf()->onConnect([&](const std::shared_ptr<ftl::protocol::Node> &p_listening) {
auto h = self->onConnect([&](const std::shared_ptr<ftl::protocol::Node> &p_listening) {
if (!disconnected_once) {
// remote closes on first connection
disconnected_once = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment