Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly authored Dec 1, 2023
1 parent 12cd63c commit 408d4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/persistent_tasks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ On Julia version 1.9 and before, this test always succeeds.
- `tmax::Real = 5`: the maximum time (in seconds) to wait after loading the
package before forcibly shutting down the precompilation process (triggering
a test failure).
- `expr = nothing`: An expression to run in the precompile package.
- `expr::Expr = quote end`: An expression to run in the precompile package.
"""
function test_persistent_tasks(package::PkgId; broken::Bool = false, kwargs...)
if broken
Expand All @@ -34,7 +34,7 @@ function test_persistent_tasks(package::Module; kwargs...)
test_persistent_tasks(PkgId(package); kwargs...)
end

function has_persistent_tasks(package::PkgId; expr::Expr = quote nothing end, tmax = 10)
function has_persistent_tasks(package::PkgId; expr::Expr = :(), tmax = 10)
root_project_path, found = root_project_toml(package)
found || error("Unable to locate Project.toml")
return !precompile_wrapper(root_project_path, tmax, expr)
Expand Down

0 comments on commit 408d4f2

Please sign in to comment.