diff --git a/test/examples.jl b/test/examples.jl index 2fbcf21593ce45..00f64b8749b1c6 100644 --- a/test/examples.jl +++ b/test/examples.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index de9ff80ed7bb73..4fef9b34cfbf28 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -41,9 +41,7 @@ cd(dirname(@__FILE__)) do test = shift!(tests) local resp 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