File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1495,6 +1495,8 @@ mod tests {
1495
1495
assert ! ( storage. exists( & path) ?) ;
1496
1496
assert ! ( storage. get_public_access( & path) ?) ;
1497
1497
1498
+ let ext = compression:: file_extension_for ( * alg) ;
1499
+
1498
1500
let json_prefix = format ! ( "rustdoc-json/{crate_}/{version}/{target}/" ) ;
1499
1501
let mut json_files: Vec < _ > = dbg ! (
1500
1502
storage
@@ -1503,12 +1505,12 @@ mod tests {
1503
1505
. map( |f| f. strip_prefix( & json_prefix) . unwrap( ) . to_owned( ) )
1504
1506
. collect( )
1505
1507
) ;
1508
+ json_files. retain ( |f| f. ends_with ( & format ! ( ".json.{ext}" ) ) ) ;
1506
1509
json_files. sort ( ) ;
1507
1510
assert ! (
1508
1511
json_files[ 0 ] . starts_with( & format!( "empty-library_1.0.0_{target}_" ) )
1509
1512
) ;
1510
1513
1511
- let ext = compression:: file_extension_for ( * alg) ;
1512
1514
assert ! ( json_files[ 0 ] . ends_with( & format!( ".json.{ext}" ) ) ) ;
1513
1515
assert_eq ! (
1514
1516
json_files[ 1 ] ,
You can’t perform that action at this time.
0 commit comments