latest.ipv8.test.peerdiscovery.test_churn

Module Contents

Classes

TestChurn

Tests for the churn strategy.

class latest.ipv8.test.peerdiscovery.test_churn.TestChurn(methodName: str = 'runTest')

Bases: latest.ipv8.test.base.TestBase

Tests for the churn strategy.

setUp() None

Create two nodes that are not managed by TestBase.

async tearDown() None

We made our own unmanaged overlays: tear them down.

async test_keep_reachable() None

Check if we don’t remove reachable nodes.

async test_remove_unreachable() None

Check if we remove unreachable nodes.

async test_no_nodes() None

Nothing should happen if we have no nodes to check.

async test_ping_timeout() None

Don’t overload inactive nodes with pings, send it once within some timeout.

async test_ping_timeout_resend() None

Don’t overload inactive nodes with pings, send it again after some timeout.