File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -22,24 +22,24 @@ async fn smoke_test() {
22
22
#[ tokio:: test]
23
23
async fn version_mentions_rustc_version_confusion ( ) {
24
24
let mut cx = CliTestContext :: new ( Scenario :: SimpleV2 ) . await ;
25
- let out = cx. config . run ( "rustup" , vec ! [ "--version" ] , & [ ] ) . await ;
26
- assert ! ( out. ok) ;
27
- assert ! ( out
28
- . stderr
29
- . contains( "This is the version for the rustup toolchain manager" ) ) ;
25
+
26
+ cx. config
27
+ . expect_stderr_ok (
28
+ & [ "rustup" , "--version" ] ,
29
+ "This is the version for the rustup toolchain manager" ,
30
+ )
31
+ . await ;
30
32
31
33
cx. config
32
34
. expect_ok ( & [ "rustup" , "toolchain" , "install" , "nightly" ] )
33
35
. await ;
34
36
35
- let out = cx
36
- . config
37
- . run ( "rustup" , vec ! [ "+nightly" , "--version" ] , & [ ] )
37
+ cx. config
38
+ . expect_stderr_ok (
39
+ & [ "rustup" , "+nightly" , "--version" ] ,
40
+ "The currently active `rustc` version is `1.3.0" ,
41
+ )
38
42
. await ;
39
- assert ! ( out. ok) ;
40
- assert ! ( out
41
- . stderr
42
- . contains( "The currently active `rustc` version is `1.3.0" ) ) ;
43
43
}
44
44
45
45
#[ tokio:: test]
You can’t perform that action at this time.
0 commit comments