Skip to content

Commit

Permalink
Run the DictChannel test on the same worker
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jul 15, 2016
1 parent 2d1f4fd commit ee25e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions test/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,8 @@ if is_unix()
end

dc_path = joinpath(dir, "dictchannel.jl")
myid() == 1 || include(dc_path)

# Run the remote on pid 1, since runtests may terminate workers
# at any time depending on memory usage
remotecall_fetch(1, dc_path) do f
include(f)
nothing
end
dc=RemoteChannel(()->DictChannel(), 1)
include(dc_path)
dc=RemoteChannel(()->DictChannel(), myid())
@test typeof(dc) == RemoteChannel{DictChannel}

@test isready(dc) == false
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ cd(dirname(@__FILE__)) do
try
# FIXME: `remote_fetch` doesn't work when
# a new module is define.
resp = remotecall_fetch(t -> runtests(t, t != "examples"), p, test)
resp = remotecall_fetch(t -> runtests(t), p, test)
catch e
resp = e
end
Expand Down

0 comments on commit ee25e0f

Please sign in to comment.