Skip to content

Commit f3eea0f

Browse files
zxvfcsylvestre
authored andcommitted
Fix failed test
1 parent ece4a9f commit f3eea0f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/integration.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ mod common {
8686
let mut cmd = cargo_bin_cmd!("diffutils");
8787
cmd.arg("diff");
8888
cmd.arg(&nopath).arg(&nopath);
89-
cmd.assert().code(predicate::eq(2)).failure().stderr(
90-
predicate::str::contains(format!(
89+
cmd.assert()
90+
.code(predicate::eq(2))
91+
.failure()
92+
.stderr(predicate::str::contains(format!(
9193
": {}: {error_message}\n",
9294
&nopath.as_os_str().to_string_lossy()
93-
))
94-
.count(2),
95-
);
95+
)));
9696

9797
Ok(())
9898
}

0 commit comments

Comments
 (0)