Skip to content

Commit 18a1760

Browse files
committed
test(future): Serialize output to avoid unordered
Parallel isn't part of this test and it makes snapshot updating annoying.
1 parent bd04a4c commit 18a1760

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/testsuite/future_incompat_report.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,11 @@ fn suggestions_for_updates() {
539539
.publish();
540540
Package::new("big_update", "1.0.0")
541541
.file("src/lib.rs", FUTURE_EXAMPLE)
542+
.dep("with_updates", "1.0.0")
542543
.publish();
543544
Package::new("without_updates", "1.0.0")
544545
.file("src/lib.rs", FUTURE_EXAMPLE)
546+
.dep("big_update", "1.0.0")
545547
.publish();
546548

547549
let p = project()
@@ -575,6 +577,7 @@ fn suggestions_for_updates() {
575577
.publish();
576578
Package::new("big_update", "2.0.0")
577579
.file("src/lib.rs", "")
580+
.dep("with_updates", "1.0.0")
578581
.publish();
579582

580583
// This is a hack to force cargo to update the index. Cargo can't do this
@@ -610,7 +613,6 @@ You may want to consider updating them to a newer version to see if the issue ha
610613
big_update v1.0.0 has the following newer versions available: 2.0.0
611614
with_updates v1.0.0 has the following newer versions available: 1.0.1, 1.0.2, 3.0.1
612615
613-
614616
- If the issue is not solved by updating the dependencies, a fix has to be
615617
implemented by those dependencies. You can help with that by notifying the
616618
maintainers of this problem (e.g. by creating a bug report) or by proposing a
@@ -632,9 +634,10 @@ fix to the maintainers (e.g. by creating a pull request):
632634
section in `Cargo.toml` to use your own version of the dependency. For more
633635
information, see:
634636
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section
637+
635638
[NOTE] this report can be shown with `cargo report future-incompatibilities --id 1`
636639
637-
"#]].unordered())
640+
"#]])
638641
.run();
639642

640643
p.cargo("report future-incompatibilities")

0 commit comments

Comments
 (0)