Skip to content

fix(tests): eliminate race condition in postgres-proxy safe query passthrough test - #26

Merged
divyanshujethi merged 2 commits into
mainfrom
fix/postgres-proxy-race-condition
Nov 7, 2026
Merged

divyanshujethi merged 2 commits into
mainfrom
fix/postgres-proxy-race-condition

Conversation

@divyanshujethi

Copy link
Copy Markdown
Contributor

In ests/postgres-proxy.test.ts, Test C previously only waited for
eceivedUpstreamQueries.length === 1 before moving to Test D. On slower Windows CI runners, the upstream response packets (CommandComplete 0x43) arrived at the client after Test D started, causing an assertion mismatch (67 !== 69). This fix waits for ReadyForQuery (x5a) on client packets before concluding Test C.

@divyanshujethi
divyanshujethi merged commit 2b39108 into main Nov 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant