File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2766,7 +2766,7 @@ async fn dont_warn_on_partial_build() {
2766
2766
/// Checks that `rust-toolchain.toml` files are considered
2767
2767
#[ tokio:: test]
2768
2768
async fn rust_toolchain_toml ( ) {
2769
- let cx = CliTestContext :: new ( Scenario :: SimpleV2 ) . await ;
2769
+ let mut cx = CliTestContext :: new ( Scenario :: SimpleV2 ) . await ;
2770
2770
cx. config
2771
2771
. expect_err (
2772
2772
& [ "rustc" , "--version" ] ,
@@ -2777,7 +2777,9 @@ async fn rust_toolchain_toml() {
2777
2777
let cwd = cx. config . current_dir ( ) ;
2778
2778
let toolchain_file = cwd. join ( "rust-toolchain.toml" ) ;
2779
2779
raw:: write_file ( & toolchain_file, "[toolchain]\n channel = \" nightly\" " ) . unwrap ( ) ;
2780
-
2780
+ cx. config
2781
+ . expect_ok ( & [ "rustup" , "toolchain" , "install" ] )
2782
+ . await ;
2781
2783
cx. config
2782
2784
. expect_stdout_ok ( & [ "rustc" , "--version" ] , "hash-nightly-2" )
2783
2785
. await ;
You can’t perform that action at this time.
0 commit comments