From d25e6cbd3188bcc4c732be59935740dd62dfa3fe Mon Sep 17 00:00:00 2001 From: faumaray Date: Wed, 28 Oct 2026 00:06:32 +0300 Subject: [PATCH] windows: the not-ported test knows the TUN beside zapret is ported Co-Authored-By: Claude Opus 5.5 --- windows/crates/ps-core/src/config/validate.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windows/crates/ps-core/src/config/validate.rs b/windows/crates/ps-core/src/config/validate.rs index d829f38..7faf787 100644 --- a/windows/crates/ps-core/src/config/validate.rs +++ b/windows/crates/ps-core/src/config/validate.rs @@ -897,9 +897,9 @@ mod tests { cfg.zapret.enable = true; cfg.proxy.tun.enable = true; let paths: Vec = validate(&cfg).into_iter().filter(|i| i.severity == Severity::Warning && i.message.contains("Windows yet")).map(|i| i.path).collect(); - for want in ["killSwitch.enable", "proxy.tun.enable"] { - assert!(paths.iter().any(|p| p == want), "{want} not in {paths:?}"); - } + assert!(paths.iter().any(|p| p == "killSwitch.enable"), "{paths:?}"); + // The TUN beside zapret is: no warning for it any more. + assert!(!paths.iter().any(|p| p == "proxy.tun.enable"), "{paths:?}"); } #[test]