Skip to content

Commit

Permalink
fix: ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI committed Aug 20, 2021
1 parent 2b82a8e commit af38fa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Alert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ end

function init_alert_REPL!()
if VERSION >= v"1.5"
if @show isdefined(Base, :active_repl_backend)
if isdefined(Base, :active_repl_backend)
push!(Base.active_repl_backend.ast_transforms, with_repl_alert)
else
pushfirst!(REPL.repl_ast_transforms, with_repl_alert)
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Test
using Alert

# without a backend, `alert` should error
if get(ENV,"CI",false)
if get(ENV,"CI","false") == "true"
@test_throws ErrorException alert()
else
@test alert() !== nothing
Expand Down

0 comments on commit af38fa3

Please sign in to comment.