forked from mirrors/kingfisher
Fixed broken tests
This commit is contained in:
parent
426acac892
commit
debf3beb8e
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ fn jdbc_rule_matches_expected_patterns() -> Result<()> {
|
|||
|
||||
let matches: BTreeSet<String> = regex
|
||||
.captures_iter(sample.as_bytes())
|
||||
.filter_map(|caps| caps.name("TOKEN"))
|
||||
.filter_map(|caps| caps.get(1))
|
||||
.map(|m| String::from_utf8_lossy(m.as_bytes()).into_owned())
|
||||
.collect();
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ fn jdbc_rule_respects_user_skip_regex() -> Result<()> {
|
|||
|
||||
let matches: Vec<String> = regex
|
||||
.captures_iter(sample.as_bytes())
|
||||
.filter_map(|caps| caps.name("TOKEN"))
|
||||
.filter_map(|caps| caps.get(1))
|
||||
.map(|m| String::from_utf8_lossy(m.as_bytes()).into_owned())
|
||||
.collect();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue