Skip to content

Commit 38e1d3a

Browse files
committed
Auto merge of #1313 - lovasoa:patch-1, r=alexcrichton
increase the timeout for running `rustc --version` Fixes #1312
2 parents de28e51 + 09a23b7 commit 38e1d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustup-cli/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pub fn rustc_version(toolchain: &Toolchain) -> String {
238238
// we guard against such cases by enforcing a reasonable timeout to read.
239239
let mut line1 = None;
240240
if let Ok(mut child) = cmd.spawn() {
241-
let timeout = Duration::new(3, 0);
241+
let timeout = Duration::new(10, 0);
242242
match child.wait_timeout(timeout) {
243243
Ok(Some(status)) if status.success() => {
244244
let out = child.stdout.expect("Child::stdout requested but not present");

0 commit comments

Comments
 (0)