Skip to content

Commit

Permalink
booktest-hangcheck: close timer also in error path
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Jan 27, 2025
1 parent f2ee5b6 commit 1a5ad37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/book/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ isdefined(Main, :FakeTerminals) || include(joinpath(pkgdir(REPL),"test","FakeTer
end
REPL.activate(Main)
output = sanitize_output(result)
close(hangwarn)
if !jlcon_mode && haderror
error("ERROR in jl-mode:\n", output)
end
@debug "repl output:\n$output"
close(hangwarn)
return output
end

Expand Down

0 comments on commit 1a5ad37

Please sign in to comment.