windows: the not-ported test knows the TUN beside zapret is ported
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d675fdddb5
commit
d25e6cbd31
1 file changed
+3
-3
@@ -897,9 +897,9 @@ mod tests {
|
||||
cfg.zapret.enable = true;
|
||||
cfg.proxy.tun.enable = true;
|
||||
let paths: Vec<String> = 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]
|
||||
|
||||
Reference in new issue
Block a user