We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c64220 commit 7ba11d1Copy full SHA for 7ba11d1
stdlib/Sockets/test/runtests.jl
@@ -413,6 +413,17 @@ end
413
end
414
415
416
+@testset "iswritable" begin
417
+ let addr = Sockets.InetAddr(ip"127.0.0.1", 4445)
418
+ srv = listen(addr)
419
+ s = Sockets.TCPSocket()
420
+ Sockets.connect!(s, addr)
421
+ @test iswritable(s)
422
+ close(s)
423
+ @test !iswritable(s)
424
+ end
425
+end
426
+
427
@testset "TCPServer constructor" begin
428
s = Sockets.TCPServer(; delay=false)
429
if ccall(:jl_has_so_reuseport, Int32, ()) == 1
0 commit comments