fix: permit verified local APT acquisition with native network denial checks
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 14:59:23 +01:00
parent e18fae0e8a
commit a5c2dce4fb
9 changed files with 210 additions and 13 deletions
@@ -200,6 +200,7 @@ class NativeProbeTests(TestCase):
patch.object(apt.os, 'readlink', return_value='host' if scenario == 'namespace' else 'child'), \
patch.object(apt, 'invalid_control_syscall_probes', return_value=prechecks(context())['checks']['control_syscalls']), \
patch.object(apt, 'frontend_lock_probe', return_value='native-apt-check-conflict'), \
patch.object(apt.socket, 'socket', side_effect=OSError(apt.errno.EAFNOSUPPORT, 'mocked kernel denial')), \
patch.object(apt.VerifiedHelperContext, 'check_deadline'):
self.assertEqual(apt.native_prechecks(context()), prechecks(context()))