Skip to content

Commit d95983f

Browse files
committed
Fix metadata tests
1 parent 89bef50 commit d95983f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/metadata.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use cargotest::support::{project, execs, basic_bin_manifest, basic_lib_manifest,
88
#[test]
99
fn cargo_metadata_simple() {
1010
let p = project("foo")
11+
.file("src/foo.rs", "")
1112
.file("Cargo.toml", &basic_bin_manifest("foo"));
1213

1314
assert_that(p.cargo_process("metadata"), execs().with_json(r#"
@@ -52,6 +53,7 @@ fn cargo_metadata_simple() {
5253
#[test]
5354
fn cargo_metadata_with_deps_and_version() {
5455
let p = project("foo")
56+
.file("src/foo.rs", "")
5557
.file("Cargo.toml", r#"
5658
[project]
5759
name = "foo"

0 commit comments

Comments
 (0)