From 833f36538d619baaa4af61f8a4219b2995fb4b02 Mon Sep 17 00:00:00 2001 From: Amit Murthy Date: Mon, 9 May 2016 08:13:20 +0530 Subject: [PATCH] Revert "detect cause of #16091" This reverts commit 6359f1de04f1adb790b50293558b7205d08908e0. --- test/examples.jl | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/test/examples.jl b/test/examples.jl index 6ea42195a99ea..9c8b4a7b543d6 100644 --- a/test/examples.jl +++ b/test/examples.jl @@ -47,37 +47,13 @@ end dc_path = joinpath(dir, "dictchannel.jl") myid() == 1 || include(dc_path) -# The checks to see if DictChannel is defined is to identify the root cause of -# https://github.com/JuliaLang/julia/issues/16091 . -# To be removed once fixed. -defined_on_worker = false -if (myid() != 1) && !isdefined(:DictChannel) - error("myid : $(myid()). DictChannel not defined.") -else - defined_on_worker = true -end - # 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 - -defined_on_master = false -if remotecall_fetch(isdefined, 1, :DictChannel) == false - error("myid : $(myid()). DictChannel not defined on 1") -else - defined_on_master = true -end - -dc = nothing -try - dc=RemoteChannel(()->DictChannel(), 1) -catch e - println("myid : ", myid(), ", dc_path : ", dc_path, ", defined_on_worker:", defined_on_worker, ", defined_on_master: ", defined_on_master) - rethrow(e) -end +dc=RemoteChannel(()->DictChannel(), 1) @test typeof(dc) == RemoteChannel{DictChannel} @test isready(dc) == false