Skip to content

Commit 8d60950

Browse files
committed
tests: move no_subject_alt_names test above helper
1 parent de8b2ec commit 8d60950

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/integration.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -331,18 +331,6 @@ fn wildcard_subject_alternative_names() {
331331
);
332332
}
333333

334-
#[cfg(feature = "alloc")]
335-
fn expect_cert_dns_names<'name>(
336-
cert_der: &[u8],
337-
expected_names: impl IntoIterator<Item = &'name str>,
338-
) {
339-
let der = CertificateDer::from(cert_der);
340-
let cert = webpki::EndEntityCert::try_from(&der)
341-
.expect("should parse end entity certificate correctly");
342-
343-
assert!(cert.dns_names().unwrap().eq(expected_names))
344-
}
345-
346334
#[cfg(feature = "alloc")]
347335
#[test]
348336
fn no_subject_alt_names() {
@@ -357,3 +345,15 @@ fn no_subject_alt_names() {
357345

358346
assert!(names.collect::<Vec<_>>().is_empty());
359347
}
348+
349+
#[cfg(feature = "alloc")]
350+
fn expect_cert_dns_names<'name>(
351+
cert_der: &[u8],
352+
expected_names: impl IntoIterator<Item = &'name str>,
353+
) {
354+
let der = CertificateDer::from(cert_der);
355+
let cert = webpki::EndEntityCert::try_from(&der)
356+
.expect("should parse end entity certificate correctly");
357+
358+
assert!(cert.dns_names().unwrap().eq(expected_names))
359+
}

0 commit comments

Comments
 (0)