diff --git a/tests/e2e/helpers/wg_runner.py b/tests/e2e/helpers/wg_runner.py index f8dd7ca..1b04121 100644 --- a/tests/e2e/helpers/wg_runner.py +++ b/tests/e2e/helpers/wg_runner.py @@ -61,7 +61,7 @@ def cleanup_stale_e2e_interfaces(): # wg-quick creates an nftables table per interface; if the interface was never brought # down cleanly the table persists and drops decrypted ICMP replies on future runs. - nft_result = subprocess.run(['nft', 'list', 'tables'], capture_output=True, text=True) + nft_result = subprocess.run(['sudo', 'nft', 'list', 'tables'], capture_output=True, text=True) for line in nft_result.stdout.splitlines(): if 'wg-quick-pic-e2e-' in line: table_name = line.strip().split()[-1]