Skip to content

Commit b7de561

Browse files
committed
Add extra test for do block
1 parent d203e8e commit b7de561

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

+3
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,11 @@ end
385385
@test !isopen(saved_conn)
386386

387387
@test_throws ErrorException LibPQ.Connection("dbname=123fake user=$DATABASE_USER"; throw_error=true) do jl_conn
388+
saved_conn = jl_conn
388389
@test false
389390
end
391+
392+
@test !isopen(saved_conn)
390393
end
391394

392395
@testset "Version Numbers" begin

0 commit comments

Comments
 (0)