File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -2,28 +2,11 @@ use std::{path::Path, time::Duration};
2
2
3
3
use bstr:: ByteSlice ;
4
4
5
- #[ test]
6
- #[ cfg_attr( debug_assertions, ignore = "fails due to integer overflow" ) ]
7
- fn abort_unfixed_in_debug_mode ( ) {
8
- for name in [ "very-long-abort2" , "very-long-abort" ] {
9
- let base = Path :: new ( "tests" ) . join ( "fixtures" ) . join ( "fuzzed" ) ;
10
- let location = base. join ( Path :: new ( name) . with_extension ( "url" ) ) ;
11
- let url = std:: fs:: read ( & location) . unwrap ( ) ;
12
- let start = std:: time:: Instant :: now ( ) ;
13
- dbg ! ( name) ;
14
- gix_url:: parse ( url. as_bstr ( ) ) . ok ( ) ;
15
- assert ! (
16
- start. elapsed( ) < Duration :: from_millis( 100 ) ,
17
- "URL at '{}' parsed too slowly, took {:.00}s" ,
18
- location. display( ) ,
19
- start. elapsed( ) . as_secs_f32( )
20
- ) ;
21
- }
22
- }
23
-
24
5
#[ test]
25
6
fn fuzzed ( ) {
26
7
for name in [
8
+ "very-long-abort2" ,
9
+ "very-long-abort" ,
27
10
"very-long6" ,
28
11
"very-long5" ,
29
12
"very-long4" ,
You can’t perform that action at this time.
0 commit comments