2.12.ipv8.test.peerdiscovery.test_random_discovery

Module Contents

Classes

class 2.12.ipv8.test.peerdiscovery.test_random_discovery.TestRandomWalk(methodName: str = 'runTest')

Bases: 2.12.ipv8.test.base.TestBase

Tests related to the random walker.

setUp() None

Set up three nodes that are not managed by TestBase.

async tearDown() None

We made our own unmanaged overlays: tear them down.

async test_take_step() None

Check if we will walk to a random other node.

Unit test network layout:

NODE0 <-> NODE1 <-> NODE2

async test_take_step_into() None

Check if we will walk to an introduced node.

Unit test network layout:

NODE0 <-> (NODE1) <-> NODE2 NODE0 -> NODE2

async test_fail_step_into() None

Check if we drop an unreachable introduced node.

Unit test network layout:

NODE0 <-> (NODE1) <-> NODE2 NODE0 -> NODE2

async test_retry_step_into() None

Check if we don’t drop an introduced node immediately.

Unit test network layout:

NODE0 <-> (NODE1) <-> NODE2 NODE0 -> NODE2