Skip to content

Commit a0415eb

Browse files
committed
tests: test check_config using stderr instead of stdout
1 parent 1d744e3 commit a0415eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/check_config/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn test_bad_config_duplicate_crate() {
2121
.assert()
2222
.failure()
2323
.code(1)
24-
.stdout(contains("duplicate key: `lazy_static` for key `crates`"));
24+
.stderr(contains("duplicate key: `lazy_static` for key `crates`"));
2525
}
2626

2727
#[test]
@@ -31,7 +31,7 @@ fn test_bad_config_duplicate_repo() {
3131
.assert()
3232
.failure()
3333
.code(1)
34-
.stdout(contains(
34+
.stderr(contains(
3535
"duplicate key: `brson/hello-rs` for key `github-repos`",
3636
));
3737
}
@@ -43,7 +43,7 @@ fn test_bad_config_missing_crate() {
4343
.assert()
4444
.failure()
4545
.code(1)
46-
.stdout(contains("crate `crater_missing_crate` is not available"));
46+
.stderr(contains("crate `crater_missing_crate` is not available"));
4747
}
4848

4949
#[test]
@@ -53,5 +53,5 @@ fn test_bad_config_missing_repo() {
5353
.assert()
5454
.failure()
5555
.code(1)
56-
.stdout(contains("GitHub repo `ghost/missing-repo` is missing"));
56+
.stderr(contains("GitHub repo `ghost/missing-repo` is missing"));
5757
}

0 commit comments

Comments
 (0)