Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Sep 12, 2023
1 parent 92ed141 commit c4bb0e2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions test/React.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ import Pluto.Configuration: Options, EvaluationOptions
end"""),
Cell("g(6) + g(6,6)"),

Cell("import Distributed"),
Cell("""
begin
pushfirst!(LOAD_PATH, "@stdlib")
import Distributed
popfirst!(LOAD_PATH)
end
"""),
Cell("Distributed.myid()"),
])

Expand Down Expand Up @@ -71,12 +77,14 @@ import Pluto.Configuration: Options, EvaluationOptions
@test notebook.cells[6].output.body == "3"

update_run!(🍭, notebook, notebook.cells[7:8])
@test if workertype === :Distributed
notebook.cells[8].output.body ("1", string(Distributed.myid()))
if workertype === :Distributed
@test notebook.cells[8].output.body ("1", string(Distributed.myid()))
elseif workertype === :Malt
notebook.cells[8].output.body == "1"
@test notebook.cells[8].output.body == "1"
elseif workertype === :InProcess
notebook.cells[8].output.body == string(Distributed.myid())
@test notebook.cells[8].output.body == string(Distributed.myid())
else
error()
end

WorkspaceManager.unmake_workspace((🍭, notebook); verbose=false)
Expand Down

0 comments on commit c4bb0e2

Please sign in to comment.