clean up error, make python tests more reliable
This commit is contained in:
parent
bdee12bbf5
commit
48ab34f577
@ -132,6 +132,13 @@ impl RoutingTable {
|
|||||||
async move {
|
async move {
|
||||||
let success = match rss.test_route(r).await {
|
let success = match rss.test_route(r).await {
|
||||||
Ok(v) => v,
|
Ok(v) => v,
|
||||||
|
// Route was already removed
|
||||||
|
Err(VeilidAPIError::InvalidArgument {
|
||||||
|
context: _,
|
||||||
|
argument: _,
|
||||||
|
value: _,
|
||||||
|
}) => false,
|
||||||
|
// Other failures
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log_rtab!(error "Test route failed: {}", e);
|
log_rtab!(error "Test route failed: {}", e);
|
||||||
ctx.lock().failed = true;
|
ctx.lock().failed = true;
|
||||||
|
@ -105,7 +105,9 @@ async def test_routing_context_app_call_loopback():
|
|||||||
await api.debug("purge routes")
|
await api.debug("purge routes")
|
||||||
|
|
||||||
# make a routing context that uses a safety route
|
# make a routing context that uses a safety route
|
||||||
rc = await (await api.new_routing_context()).with_privacy()
|
rc = await (await (await api.new_routing_context()).with_privacy()).with_sequencing(
|
||||||
|
veilid.Sequencing.ENSURE_ORDERED
|
||||||
|
)
|
||||||
async with rc:
|
async with rc:
|
||||||
# make a new local private route
|
# make a new local private route
|
||||||
prl, blob = await api.new_private_route()
|
prl, blob = await api.new_private_route()
|
||||||
|
Loading…
Reference in New Issue
Block a user