Commit fc8544d
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 5e936ad commit fc8544d
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
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