File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -1496,11 +1496,42 @@ fn report_behind() {
1496
1496
p. cargo ( "generate-lockfile" ) . run ( ) ;
1497
1497
Package :: new ( "breaking" , "0.1.1" ) . publish ( ) ;
1498
1498
1499
- p. cargo ( "update" )
1499
+ p. cargo ( "update --dry-run " )
1500
1500
. with_stderr (
1501
1501
"\
1502
1502
[UPDATING] `dummy-registry` index
1503
1503
[UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1504
+ [WARNING] not updating lockfile due to dry run
1505
+ " ,
1506
+ )
1507
+ . run ( ) ;
1508
+
1509
+ p. cargo ( "update --dry-run --verbose" )
1510
+ . with_stderr (
1511
+ "\
1512
+ [UPDATING] `dummy-registry` index
1513
+ [UPDATING] breaking v0.1.0 -> v0.1.1 (latest: v0.2.0)
1514
+ [WARNING] not updating lockfile due to dry run
1515
+ " ,
1516
+ )
1517
+ . run ( ) ;
1518
+
1519
+ p. cargo ( "update" ) . run ( ) ;
1520
+
1521
+ p. cargo ( "update --dry-run" )
1522
+ . with_stderr (
1523
+ "\
1524
+ [UPDATING] `dummy-registry` index
1525
+ [WARNING] not updating lockfile due to dry run
1526
+ " ,
1527
+ )
1528
+ . run ( ) ;
1529
+
1530
+ p. cargo ( "update --dry-run --verbose" )
1531
+ . with_stderr (
1532
+ "\
1533
+ [UPDATING] `dummy-registry` index
1534
+ [WARNING] not updating lockfile due to dry run
1504
1535
" ,
1505
1536
)
1506
1537
. run ( ) ;
You can’t perform that action at this time.
0 commit comments