Skip to content

Commit 4868bf8

Browse files
committed
test: migrate minimal_versions to snapbox
1 parent 5586a47 commit 4868bf8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/testsuite/minimal_versions.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
//!
33
//! Note: Some tests are located in the resolver-tests package.
44
5-
#![allow(deprecated)]
6-
75
use cargo_test_support::project;
86
use cargo_test_support::registry::Package;
7+
use cargo_test_support::str;
98

109
// Ensure that the "-Z minimal-versions" CLI option works and the minimal
1110
// version of a dependency ends up in the lock file.
@@ -32,13 +31,12 @@ fn minimal_version_cli() {
3231

3332
p.cargo("generate-lockfile -Zminimal-versions")
3433
.masquerade_as_nightly_cargo(&["minimal-versions"])
35-
.with_stderr(
36-
"\
37-
[UPDATING] [..]
34+
.with_stderr_data(str![[r#"
35+
[UPDATING] `dummy-registry` index
3836
[LOCKING] 2 packages to earliest compatible versions
3937
[ADDING] dep v1.0.0 (latest: v1.1.0)
40-
",
41-
)
38+
39+
"#]])
4240
.run();
4341

4442
let lock = p.read_lockfile();

0 commit comments

Comments
 (0)