File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ name: ci
22on :
33 push :
44 branches-ignore :
5- - master
5+ - main
66 pull_request :
77 branches-ignore :
88 - master
99jobs :
1010 test :
11+ if : ${{ !(github.event_name == 'pull_request' && github.event.pull_request.base.repo.full_name == github.repository) }}
1112 runs-on : ubuntu-22.04
1213 services :
1314 mssql :
5758 COVERALLS_PARALLEL : true
5859
5960 coveralls :
61+ if : ${{ !(github.event_name == 'pull_request' && github.event.pull_request.base.repo.full_name == github.repository) }}
6062 name : Finish Coveralls
6163 needs : test
6264 runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ async def release(self, conn):
192192 self ._terminated .remove (conn )
193193 return
194194 self ._used .remove (conn )
195- if not conn .closed :
195+ if conn . connected and not conn .closed :
196196 if self ._closing :
197197 await conn .close ()
198198 else :
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ async def test_release_closed(pool):
6060 assert 0 == pool .freesize
6161 await conn .close ()
6262 await pool .release (conn )
63- assert 1 == pool .freesize
63+ assert 0 == pool .freesize
6464 assert not pool ._used
65- assert 1 == pool .size
65+ assert 0 == pool .size
6666
6767 conn2 = await pool .acquire ()
6868 assert 0 == pool .freesize
You can’t perform that action at this time.
0 commit comments