Skip to content

test(http): wait for public listener in body logging tests (backport of #4732) - #4733

Open
reinkrul wants to merge 1 commit into
V6.2from
V6_2/backport-http-engine-test-race
Open

reinkrul wants to merge 1 commit into
V6.2from
V6_2/backport-http-engine-test-race

Conversation

@reinkrul

Copy link
Copy Markdown
Member

Backport of #4732 to V6.2.

  • TestEngine_LoggingMiddleware waited for the internal listener, then sent requests to the public listener, which may not be up yet → connection refused.
  • Fix: wait for the public listener, like TestEngine_RequestBodyLimit already does.
  • Test-only change; same diff as test(http): wait for public listener in body logging tests #4732.

V5.4 is not affected (single HTTP interface).

Assisted by AI

The body logging tests waited for the internal listener but sent requests to the public one. Both listeners start in the background, so the request could be refused if the public listener was not up yet.

Assisted by AI

(cherry picked from commit 3888fb3)

This branch has not been deployed

No deployments
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