This commit is contained in:
John Smith 2023-06-16 13:14:34 -04:00
parent fe502a3645
commit c6e2836b85
3 changed files with 11 additions and 1 deletions

View File

@ -934,7 +934,7 @@ impl VeilidAPI {
entry <node>
nodeinfo
config [key [new value]]
purge <buckets|connections>
purge <buckets|connections|routes>
attach
detach
restart network

View File

@ -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):

View File

@ -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()