summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-01-25 16:40:14 +0800
committerNick Cao <nickcao@nichi.co>2023-01-25 18:46:27 +0800
commit0ea2d480e412236ea2d8970797901a21802a2465 (patch)
tree8b1c909ca1e75db53e485040cbcb152ec1549781 /doc
parenta5088fdb72bee5cd032cd01c8ffb7ce9d65fcff8 (diff)
postgresqlTestHook: run postgresqlTestSetupPost hook after setting up
Diffstat (limited to 'doc')
-rw-r--r--doc/hooks/postgresql-test-hook.section.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/hooks/postgresql-test-hook.section.md b/doc/hooks/postgresql-test-hook.section.md
index c53d841883e5..8b37ca1e4b3e 100644
--- a/doc/hooks/postgresql-test-hook.section.md
+++ b/doc/hooks/postgresql-test-hook.section.md
@@ -46,6 +46,12 @@ Bash-only variables:
- `postgresqlEnableTCP`: set to `1` to enable TCP listening. Flaky; not recommended.
- `postgresqlStartCommands`: defaults to `pg_ctl start`.
+## Hooks {#sec-postgresqlTestHook-hooks}
+
+A number of additional hooks are ran in postgresqlTestHook
+
+ - `postgresqlTestSetupPost`: ran after postgresql has been set up.
+
## TCP and the Nix sandbox {#sec-postgresqlTestHook-tcp}
`postgresqlEnableTCP` relies on network sandboxing, which is not available on macOS and some custom Nix installations, resulting in flaky tests.