Skip to content

Commit

Permalink
Auto merge of #11766 - ehuss:dep-order, r=epage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Feb 25, 2023
2 parents 65cab34 + 1c4651e commit ec65242
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testsuite/inheritable_workspace_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ fn inherit_own_dependencies() {
Package::new("dep-dev", "0.5.2").publish();

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

p.cargo("check")
.with_stderr(
// Unordered because the download order is nondeterministic.
.with_stderr_unordered(
"\
[UPDATING] `[..]` index
[DOWNLOADING] crates ...
Expand Down

0 comments on commit ec65242

Please sign in to comment.