latest.ipv8.test.dht.test_churn

Module Contents

Classes

TestPingChurn

Tests for pinging nodes in the DHT community.

class latest.ipv8.test.dht.test_churn.TestPingChurn

Bases: latest.ipv8.test.dht.base.TestDHTBase[latest.ipv8.dht.community.DHTCommunity]

Tests for pinging nodes in the DHT community.

setUp() None

Create two nodes with a ping churn strategy.

async test_ping_all() None

Check if a failed node without a previous response is pinged and if it responds.

async test_ping_all_skip() None

Check if a failed node that recently responded is not spammed with a ping.