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 7c2b542 commit 3481151Copy full SHA for 3481151
test/runtests.jl
@@ -611,16 +611,12 @@ end
611
close(Base.Libc.FILE(LibPQ.socket(conn), "r")) # close socket
612
LibPQ._connect_poll(conn, Timer(0), 0)
613
614
- errs = map(LibPQ.Errors.PQConnectionError, [
615
- "could not receive data from server: Bad file descriptor\n",
616
- "could not get socket error status: Bad file descriptor\n",
617
- ])
618
-
619
try
620
LibPQ.handle_new_connection(LibPQ.Connection(conn))
621
@test false
622
catch err
623
- @test err in errs
+ @test err isa LibPQ.Errors.PQConnectionError
+ @test occursin("Bad file descriptor", sprint(show, err))
624
end
625
626
0 commit comments