mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 08:09:58 +00:00
This reverts commit 826e89b9ce.
The problem with that commit was that it deletes the TempDir while
there are still EphemeralFile instances open.
At first I thought this could be fixed by simply adding
Handle::current().block_on(task_mgr::shutdown(None, Some(tenant_id), None))
to TenantHarness::drop, but it turned out to be insufficient.
So, reverting the commit until we find a proper solution.
refs https://github.com/neondatabase/neon/issues/3385
Simple tests that only need a PostgreSQL connection to run. These are run by the regress/test_pg_regress.py test, which uses the PostgreSQL pg_regress utility.
To add a new SQL test:
- add sql script to run to neon_regress/sql/testname.sql
- add expected output to neon_regress/expected/testname.out
- add testname to parallel_schedule
That's it. For more complex tests see PostgreSQL regression tests in src/test/regress. These work basically the same.