Skip to content

Commit

Permalink
Merge pull request #929 from NordSecurity/test_wg_adapter_cleanup-tel…
Browse files Browse the repository at this point in the history
…io-remote-shutdown-race

Handle ConnectionRefusedError gracefully
  • Loading branch information
tomaszklak authored Nov 6, 2024
2 parents 5d876fb + e63df5b commit a29dcee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Empty file.
2 changes: 2 additions & 0 deletions nat-lab/tests/test_wg_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ async def test_wg_adapter_cleanup(conn_tag: ConnectionTag):
).execute()
except ProcessExecError:
pass
except ConnectionRefusedError as e:
print(datetime.now(), f"First libtelio failed with {e}")

# Check if libtelio left hanging wintun adapter, might now always happen, so we just leave test
async with new_connection_by_tag(conn_tag) as conn:
Expand Down

0 comments on commit a29dcee

Please sign in to comment.