Skip to content

Commit 503af8a

Browse files
committed
Fix spurious error for test json_artifact_includes_test_flag
There is a race condition for which job finishes first. On CI I am able to reproduce the error about 1% of the time. Recent failures: - https://ci.appveyor.com/project/rust-lang-libs/cargo/builds/20151768/job/oghwemec7b19turs - https://travis-ci.org/rust-lang/cargo/jobs/464717439
1 parent 34610eb commit 503af8a

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

tests/testsuite/test.rs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2992,32 +2992,9 @@ fn json_artifact_includes_test_flag() {
29922992
).file("src/lib.rs", "")
29932993
.build();
29942994

2995-
p.cargo("test -v --message-format=json")
2995+
p.cargo("test --lib -v --message-format=json")
29962996
.with_json(
29972997
r#"
2998-
{
2999-
"reason":"compiler-artifact",
3000-
"profile": {
3001-
"debug_assertions": true,
3002-
"debuginfo": 2,
3003-
"opt_level": "0",
3004-
"overflow_checks": true,
3005-
"test": false
3006-
},
3007-
"executable": null,
3008-
"features": [],
3009-
"package_id":"foo 0.0.1 ([..])",
3010-
"target":{
3011-
"kind":["lib"],
3012-
"crate_types":["lib"],
3013-
"edition": "2015",
3014-
"name":"foo",
3015-
"src_path":"[..]lib.rs"
3016-
},
3017-
"filenames":["[..].rlib"],
3018-
"fresh": false
3019-
}
3020-
30212998
{
30222999
"reason":"compiler-artifact",
30233000
"profile": {

0 commit comments

Comments
 (0)