Skip to content

Commit ad900ad

Browse files
committed
test
1 parent d03b772 commit ad900ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/docbuilder/rustwide_builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,8 @@ mod tests {
14951495
assert!(storage.exists(&path)?);
14961496
assert!(storage.get_public_access(&path)?);
14971497

1498+
let ext = compression::file_extension_for(*alg);
1499+
14981500
let json_prefix = format!("rustdoc-json/{crate_}/{version}/{target}/");
14991501
let mut json_files: Vec<_> = dbg!(
15001502
storage
@@ -1503,12 +1505,12 @@ mod tests {
15031505
.map(|f| f.strip_prefix(&json_prefix).unwrap().to_owned())
15041506
.collect()
15051507
);
1508+
json_files.retain(|f| f.ends_with(&format!(".json.{ext}")));
15061509
json_files.sort();
15071510
assert!(
15081511
json_files[0].starts_with(&format!("empty-library_1.0.0_{target}_"))
15091512
);
15101513

1511-
let ext = compression::file_extension_for(*alg);
15121514
assert!(json_files[0].ends_with(&format!(".json.{ext}")));
15131515
assert_eq!(
15141516
json_files[1],

0 commit comments

Comments
 (0)