Removing usage of callback to send keepalive as unnecessary.

This commit is contained in:
clemahieu 2021-09-11 14:35:34 +01:00
commit 3159a5cdc8
No known key found for this signature in database
GPG key ID: 43708520C8DFB938

View file

@ -1215,12 +1215,7 @@ TEST (network, cleanup_purge)
ASSERT_EQ (0, node1.network.size ());
std::weak_ptr<nano::node> node_w = node1.shared ();
node1.network.tcp_channels.start_tcp (node2->network.endpoint (), [node_w] (std::shared_ptr<nano::transport::channel> const & channel_a) {
if (auto node_l = node_w.lock ())
{
node_l->network.send_keepalive (channel_a);
}
});
node1.network.tcp_channels.start_tcp (node2->network.endpoint ());
ASSERT_TIMELY (3s, node1.network.size () == 1);
node1.network.cleanup (test_start);