Skip to content

Commit

Permalink
🕷 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Dec 13, 2021
1 parent d0da844 commit 7d936a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/Configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
["--compile=min", "--startup-file=no", "--history-file=no"]
end

@testset "authentication" begin
@testset "Authentication" begin
port = 1238
options = Pluto.Configuration.from_flat_kwargs(; port=port, launch_browser=false, workspace_use_distributed=false)
🍭 = Pluto.ServerSession(; options=options)
Expand Down Expand Up @@ -129,21 +129,21 @@ end
server_running() = HTTP.get(local_url("favicon.ico")).status == 200 && HTTP.get(local_url("edit")).status == 200

# without notebook at startup
server_task = @async Pluto.run(port=port, launch_browser=false, workspace_use_distributed=false, require_secret_for_access=false)
server_task = @async Pluto.run(port=port, launch_browser=false, workspace_use_distributed=false, require_secret_for_access=false, require_secret_for_open_links=false)
@test poll(5) do
server_running()
end
@async schedule(server_task, InterruptException(); error=true)

# with a single notebook at startup
server_task = @async Pluto.run(notebook=first(nbnames), port=port, launch_browser=false, workspace_use_distributed=false, require_secret_for_access=false)
server_task = @async Pluto.run(notebook=first(nbnames), port=port, launch_browser=false, workspace_use_distributed=false, require_secret_for_access=false, require_secret_for_open_links=false)
@test poll(5) do
server_running()
end
@async schedule(server_task, InterruptException(); error=true)

# with multiple notebooks at startup
server_task = @async Pluto.run(notebook=nbnames, port=port, launch_browser=false, workspace_use_distributed=false, require_secret_for_access=false)
server_task = @async Pluto.run(notebook=nbnames, port=port, launch_browser=false, workspace_use_distributed=false, require_secret_for_access=false, require_secret_for_open_links=false)
@test poll(5) do
server_running()
end
Expand Down
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ include("./webserver.jl")
verify_no_running_processes()
include("./Notebook.jl")
verify_no_running_processes()
include("./Configuration.jl")
verify_no_running_processes()

# # tests that don't start new processes:
include("./ReloadFromFile.jl")
include("./packages/PkgCompat.jl")
include("./ExpressionExplorer.jl")
include("./MethodSignatures.jl")
VERSION > v"1.6.99" || include("./Configuration.jl") # TODO THIS DOES START NEW PROCESSES
include("./MoreAnalysis.jl")
include("./Analysis.jl")
include("./webserver_utils.jl")
Expand Down

0 comments on commit 7d936a0

Please sign in to comment.