From ee828a06dce6252de474337dc8c4f87903673f43 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Wed, 30 May 2018 13:22:33 -0500 Subject: [PATCH] Increase challenge_prompt timeout to 60 seconds Change will possibly help with LibGit2 test failures which are occurring on the build bots. --- stdlib/LibGit2/test/libgit2.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/LibGit2/test/libgit2.jl b/stdlib/LibGit2/test/libgit2.jl index ab9353d1ba46c..4fa283eb2c748 100644 --- a/stdlib/LibGit2/test/libgit2.jl +++ b/stdlib/LibGit2/test/libgit2.jl @@ -10,7 +10,7 @@ const BASE_TEST_PATH = joinpath(Sys.BINDIR, "..", "share", "julia", "test") isdefined(Main, :TestHelpers) || @eval Main include(joinpath($(BASE_TEST_PATH), "TestHelpers.jl")) import .Main.TestHelpers: with_fake_pty -function challenge_prompt(code::Expr, challenges; timeout::Integer=10, debug::Bool=true) +function challenge_prompt(code::Expr, challenges; timeout::Integer=60, debug::Bool=true) output_file = tempname() wrapped_code = quote using Serialization @@ -34,7 +34,7 @@ function challenge_prompt(code::Expr, challenges; timeout::Integer=10, debug::Bo return nothing end -function challenge_prompt(cmd::Cmd, challenges; timeout::Integer=10, debug::Bool=true) +function challenge_prompt(cmd::Cmd, challenges; timeout::Integer=60, debug::Bool=true) function format_output(output) !debug && return "" str = read(seekstart(output), String)