File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3175,13 +3175,13 @@ fn compiler_json_error_format() {
31753175
31763176 // Use `jobs=1` to ensure that the order of messages is consistent.
31773177 p. cargo ( "build -v --message-format=json --jobs=1" )
3178- . with_json ( & output ( "false" ) )
3178+ . with_json_contains_unordered ( & output ( "false" ) )
31793179 . run ( ) ;
31803180
31813181 // With fresh build, we should repeat the artifacts,
31823182 // and replay the cached compiler warnings.
31833183 p. cargo ( "build -v --message-format=json --jobs=1" )
3184- . with_json ( & output ( "true" ) )
3184+ . with_json_contains_unordered ( & output ( "true" ) )
31853185 . run ( ) ;
31863186}
31873187
@@ -3210,7 +3210,7 @@ fn message_format_json_forward_stderr() {
32103210 . build ( ) ;
32113211
32123212 p. cargo ( "rustc --release --bin foo --message-format JSON" )
3213- . with_json (
3213+ . with_json_contains_unordered (
32143214 r#"
32153215 {
32163216 "reason":"compiler-message",
You can’t perform that action at this time.
0 commit comments