Commit 45520c1
committed
fix(test): use proxy's configured database port in advisory lock test
client_a was hardcoded to PG_PORT (5532) while the proxy may connect to
a different PostgreSQL instance (e.g. postgres-tls:5617 in TLS CI). This
meant the advisory lock was held on a different server than client_b was
targeting, so the lock never blocked and the test was flaky in CI.
Use get_database_port() to ensure client_a connects to the same
PostgreSQL instance the proxy uses.1 parent 06a9a54 commit 45520c1
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments