Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase challenge_prompt timeout to 60 seconds #27329

Merged
merged 1 commit into from
May 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/LibGit2/test/libgit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down