Skip to content

Commit

Permalink
Fix non-deterministic regex capturing group in writer::JUnit tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilslv authored Dec 1, 2021
1 parent ae2c9ee commit e7387d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/junit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ async fn main() {
// Required to strip out non-deterministic parts of output, so we could
// compare them well.
let non_deterministic = Regex::new(
r#"time(stamp)?="[^"]+"|: [\\/:?A-z]+.feature(:\d+:\d+)?|\s?\n"#,
"time(stamp)?=\"[^\"]+\"\
|: [/\\\\](.*)[/\\\\]([A-z1-9-_]*).feature(:\\d+:\\d+)?\
|\\s?\n",
)
.unwrap();

Expand Down

0 comments on commit e7387d4

Please sign in to comment.