File tree 1 file changed +3
-3
lines changed
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() {
3175
3175
3176
3176
// Use `jobs=1` to ensure that the order of messages is consistent.
3177
3177
p. cargo ( "build -v --message-format=json --jobs=1" )
3178
- . with_json ( & output ( "false" ) )
3178
+ . with_json_contains_unordered ( & output ( "false" ) )
3179
3179
. run ( ) ;
3180
3180
3181
3181
// With fresh build, we should repeat the artifacts,
3182
3182
// and replay the cached compiler warnings.
3183
3183
p. cargo ( "build -v --message-format=json --jobs=1" )
3184
- . with_json ( & output ( "true" ) )
3184
+ . with_json_contains_unordered ( & output ( "true" ) )
3185
3185
. run ( ) ;
3186
3186
}
3187
3187
@@ -3210,7 +3210,7 @@ fn message_format_json_forward_stderr() {
3210
3210
. build ( ) ;
3211
3211
3212
3212
p. cargo ( "rustc --release --bin foo --message-format JSON" )
3213
- . with_json (
3213
+ . with_json_contains_unordered (
3214
3214
r#"
3215
3215
{
3216
3216
"reason":"compiler-message",
You can’t perform that action at this time.
0 commit comments