]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Make cleanup tests more reliable
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 27 Feb 2021 11:47:36 +0000 (12:47 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Mar 2021 04:07:25 +0000 (05:07 +0100)
commit94191ba3c3f137d07757d474633574d51c532339
treea39960313aed59ce00bd642201d7e0be1bf55bde
parent3d9ca212dd1b351f7baa6eac3db73895f5a813df
Make cleanup tests more reliable

Unfortunately there is some race condition on delete and for now just
using a timer.

In order to limit the problem don't actually run the StopWorker task but
bail out from the workers as soon as seen.
psycopg3/psycopg3/pool/async_pool.py
psycopg3/psycopg3/pool/base.py
tests/pool/test_pool_async.py