From 6708d27df3e7bf2dd10c9e1473ba2d90a2862fd8 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Fri, 9 Nov 2018 16:23:11 -0500 Subject: [PATCH] revert invalid changes --- stdlib/Sockets/test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/Sockets/test/runtests.jl b/stdlib/Sockets/test/runtests.jl index 0976d1e05c446..5d4d09e531bd5 100644 --- a/stdlib/Sockets/test/runtests.jl +++ b/stdlib/Sockets/test/runtests.jl @@ -415,7 +415,7 @@ end let addr = Sockets.InetAddr(ip"127.0.0.1", 4444) srv = listen(addr) - r = @async (sleep(1); close(srv)) + r = @async close(srv) @test_throws Base._UVError("accept", Base.UV_ECONNABORTED) accept(srv) fetch(r) end @@ -424,7 +424,7 @@ end srv = listen(addr) s = Sockets.TCPSocket() Sockets.connect!(s, addr) - r = @async (sleep(1); close(s)) + r = @async close(s) @test_throws Base._UVError("connect", Base.UV_ECANCELED) Sockets.wait_connected(s) fetch(r) end