Skip to content

Commit ec65242

Browse files
committed
Auto merge of #11766 - ehuss:dep-order, r=epage
Fix tests with nondeterministic ordering A couple tests updated in #11650 started using curl's http API. It appears to have a nondeterministic order for when crates will finish downloading. This addresses it by ignoring the order, which is not important for these tests.
2 parents 65cab34 + 1c4651e commit ec65242

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/testsuite/inheritable_workspace_fields.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ fn inherit_own_dependencies() {
283283
Package::new("dep-dev", "0.5.2").publish();
284284

285285
p.cargo("check")
286-
.with_stderr(
286+
// Unordered because the download order is nondeterministic.
287+
.with_stderr_unordered(
287288
"\
288289
[UPDATING] `[..]` index
289290
[DOWNLOADING] crates ...
@@ -813,7 +814,8 @@ fn inherit_dependencies() {
813814
Package::new("dep-dev", "0.5.2").publish();
814815

815816
p.cargo("check")
816-
.with_stderr(
817+
// Unordered because the download order is nondeterministic.
818+
.with_stderr_unordered(
817819
"\
818820
[UPDATING] `[..]` index
819821
[DOWNLOADING] crates ...

0 commit comments

Comments
 (0)