Skip to content

Commit 3c060cb

Browse files
committed
enabled previously disabled test as it works with the latest version of url
1 parent ebca00a commit 3c060cb

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

gix-url/tests/fuzzed.rs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,11 @@ use std::{path::Path, time::Duration};
22

33
use bstr::ByteSlice;
44

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-
245
#[test]
256
fn fuzzed() {
267
for name in [
8+
"very-long-abort2",
9+
"very-long-abort",
2710
"very-long6",
2811
"very-long5",
2912
"very-long4",

0 commit comments

Comments
 (0)