File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3333 run : pre-commit run -a --color=always
3434
3535 - name : Check for sync/async inconsistencies
36- run : ./tools/async_to_sync.py --check --all
36+ run : ./tools/async_to_sync.py --check $(find tests -name "*_async.py" -type f ! -path "tests/pq/test_async.py")
3737
3838 - name : Install requirements to generate docs
3939 run : sudo apt-get install -y libgeos-dev
Original file line number Diff line number Diff line change 2525 # Tests should have been skipped if the package is not available
2626 pass
2727
28+ if True : # ASYNC
29+ pytestmark = [pytest .mark .anyio ]
30+
2831
2932def test_default_sizes (dsn ):
3033 with pool .ConnectionPool (dsn ) as p :
@@ -452,7 +455,7 @@ def worker(n):
452455
453456 times = [item [1 ] for item in results ]
454457 for got , want in zip (times , want_times ):
455- assert got == pytest .approx (want , 0.1 ), times
458+ assert got == pytest .approx (want , 0.2 ), times
456459
457460
458461@pytest .mark .slow
@@ -749,6 +752,7 @@ def test_check_idle(dsn):
749752
750753
751754@pytest .mark .gaussdb_skip ("pg_terminate_backend" )
755+ @pytest .mark .opengauss_skip ("pg_terminate_backend" )
752756@pytest .mark .crdb_skip ("pg_terminate_backend" )
753757def test_connect_no_check (dsn ):
754758 with pool .ConnectionPool (dsn , min_size = 2 ) as p :
Original file line number Diff line number Diff line change 2323 # Tests should have been skipped if the package is not available
2424 pass
2525
26+ if True : # ASYNC
27+ pytestmark = [pytest .mark .anyio ]
28+
2629
2730def test_default_sizes (dsn ):
2831 with pool .NullConnectionPool (dsn ) as p :
You can’t perform that action at this time.
0 commit comments