From c6e2836b85a3c667cb947b4eb643af765152389d Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 16 Jun 2023 13:14:34 -0400 Subject: [PATCH] xfer --- veilid-core/src/veilid_api/debug.rs | 2 +- veilid-python/tests/__init__.py | 4 ++++ veilid-python/tests/test_routing_context.py | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/veilid-core/src/veilid_api/debug.rs b/veilid-core/src/veilid_api/debug.rs index bdc269ee..436eec3b 100644 --- a/veilid-core/src/veilid_api/debug.rs +++ b/veilid-core/src/veilid_api/debug.rs @@ -934,7 +934,7 @@ impl VeilidAPI { entry nodeinfo config [key [new value]] - purge + purge attach detach restart network diff --git a/veilid-python/tests/__init__.py b/veilid-python/tests/__init__.py index 7f5c42bb..428f1e4c 100644 --- a/veilid-python/tests/__init__.py +++ b/veilid-python/tests/__init__.py @@ -24,6 +24,10 @@ else: async def simple_connect_and_run(func: Callable[[veilid.VeilidAPI], Awaitable]): api = await veilid.json_api_connect(VEILID_SERVER, VEILID_SERVER_PORT, simple_update_callback) async with api: + + # purge routes to ensure we start fresh + await api.debug("purge routes") + await func(api) async def simple_update_callback(update: veilid.VeilidUpdate): diff --git a/veilid-python/tests/test_routing_context.py b/veilid-python/tests/test_routing_context.py index 2ab8a579..d1842907 100644 --- a/veilid-python/tests/test_routing_context.py +++ b/veilid-python/tests/test_routing_context.py @@ -29,6 +29,9 @@ async def test_routing_context_app_message_loopback(): api = await veilid.json_api_connect(VEILID_SERVER, VEILID_SERVER_PORT, app_message_queue_update_callback) async with api: + # purge routes to ensure we start fresh + await api.debug("purge routes") + # make a routing context that uses a safety route rc = await (await api.new_routing_context()).with_privacy() @@ -60,6 +63,9 @@ async def test_routing_context_app_call_loopback(): api = await veilid.json_api_connect(VEILID_SERVER, VEILID_SERVER_PORT, app_call_queue_update_callback) async with api: + # purge routes to ensure we start fresh + await api.debug("purge routes") + # make a routing context that uses a safety route rc = await (await api.new_routing_context()).with_privacy()