Removing usage of callback to send keepalive as unnecessary.
This commit is contained in:
parent
942e12e7e6
commit
3159a5cdc8
1 changed files with 1 additions and 6 deletions
|
|
@ -1215,12 +1215,7 @@ TEST (network, cleanup_purge)
|
||||||
ASSERT_EQ (0, node1.network.size ());
|
ASSERT_EQ (0, node1.network.size ());
|
||||||
|
|
||||||
std::weak_ptr<nano::node> node_w = node1.shared ();
|
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) {
|
node1.network.tcp_channels.start_tcp (node2->network.endpoint ());
|
||||||
if (auto node_l = node_w.lock ())
|
|
||||||
{
|
|
||||||
node_l->network.send_keepalive (channel_a);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
ASSERT_TIMELY (3s, node1.network.size () == 1);
|
ASSERT_TIMELY (3s, node1.network.size () == 1);
|
||||||
node1.network.cleanup (test_start);
|
node1.network.cleanup (test_start);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue