Skip to content

Commit 22cebce

Browse files
committed
tests: clean up unneeded bindings
1 parent 2350c2e commit 22cebce

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

tests/integration.rs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,8 @@ fn read_ee_with_large_pos_serial() {
258258
#[cfg(feature = "alloc")]
259259
#[test]
260260
fn list_netflix_names() {
261-
let ee = include_bytes!("netflix/ee.der");
262-
263261
expect_cert_dns_names(
264-
ee,
262+
include_bytes!("netflix/ee.der"),
265263
[
266264
"account.netflix.com",
267265
"ca.netflix.com",
@@ -282,12 +280,10 @@ fn list_netflix_names() {
282280
#[cfg(feature = "alloc")]
283281
#[test]
284282
fn invalid_subject_alt_names() {
285-
// same as netflix ee certificate, but with the last name in the list
286-
// changed to 'www.netflix:com'
287-
let data = include_bytes!("misc/invalid_subject_alternative_name.der");
288-
289283
expect_cert_dns_names(
290-
data,
284+
// same as netflix ee certificate, but with the last name in the list
285+
// changed to 'www.netflix:com'
286+
include_bytes!("misc/invalid_subject_alternative_name.der"),
291287
[
292288
"account.netflix.com",
293289
"ca.netflix.com",
@@ -308,12 +304,10 @@ fn invalid_subject_alt_names() {
308304
#[cfg(feature = "alloc")]
309305
#[test]
310306
fn wildcard_subject_alternative_names() {
311-
// same as netflix ee certificate, but with the last name in the list
312-
// changed to 'ww*.netflix:com'
313-
let data = include_bytes!("misc/dns_names_and_wildcards.der");
314-
315307
expect_cert_dns_names(
316-
data,
308+
// same as netflix ee certificate, but with the last name in the list
309+
// changed to 'ww*.netflix:com'
310+
include_bytes!("misc/dns_names_and_wildcards.der"),
317311
[
318312
"account.netflix.com",
319313
"*.netflix.com",

0 commit comments

Comments
 (0)