Skip to content

Commit

Permalink
chore: update package tests to use check
Browse files Browse the repository at this point in the history
  • Loading branch information
Muscraft committed Feb 20, 2023
1 parent e3d3bb6 commit de2e974
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testsuite/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,10 +1301,10 @@ fn test_edition() {
.file("src/lib.rs", r#" "#)
.build();

p.cargo("build -v")
p.cargo("check -v")
.with_stderr_contains(
"\
[COMPILING] foo v0.0.1 ([..])
[CHECKING] foo v0.0.1 ([..])
[RUNNING] `rustc [..]--edition=2018 [..]
",
)
Expand Down Expand Up @@ -1349,7 +1349,7 @@ fn test_edition_malformed() {
.file("src/lib.rs", r#" "#)
.build();

p.cargo("build -v")
p.cargo("check -v")
.with_status(101)
.with_stderr(
"\
Expand Down Expand Up @@ -1381,7 +1381,7 @@ fn test_edition_from_the_future() {
.file("src/main.rs", r#""#)
.build();

p.cargo("build")
p.cargo("check")
.with_status(101)
.with_stderr(
"\
Expand Down

0 comments on commit de2e974

Please sign in to comment.