Skip to content

Commit 26908a8

Browse files
committed
fix windows
1 parent cb2c1d7 commit 26908a8

File tree

1 file changed

+2
-2
lines changed
  • rustls-platform-verifier/src/tests/verification_mock

1 file changed

+2
-2
lines changed

rustls-platform-verifier/src/tests/verification_mock/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ fn test_selfsigned_cert_with_extra_roots() {
211211
verification_time(),
212212
);
213213

214-
#[cfg(target_vendor = "apple")]
214+
#[cfg(any(target_vendor = "apple", target_os = "windows"))]
215215
assert!(
216216
result.is_err(),
217217
"self-signed leaf certificate with long validity period is accepted unexpectly"
218218
);
219219

220-
#[cfg(not(target_vendor = "apple"))]
220+
#[cfg(not(any(target_vendor = "apple", target_os = "windows")))]
221221
assert!(
222222
result.is_ok(),
223223
"failed to validate self-signed leaf certificate with long validity period"

0 commit comments

Comments
 (0)