Skip to content

test(agent): wait for the client to drop the old connection on server… - #218

Merged
eniac111 merged 1 commit into
masterfrom
fix/flaky-ca-replacement-test
Nov 12, 2026
Merged

eniac111 merged 1 commit into
masterfrom
fix/flaky-ca-replacement-test

Conversation

@eniac111

Copy link
Copy Markdown
Member

… restart

TestClient_FollowsCAReplacement restarts the policy server on the same address several times. A heartbeat sent before the client noticed the previous server was gone went out on the dead connection and failed with "Unavailable: error reading from server: EOF", which made the test flaky in CI.

Wait for the connection to leave READY after each restart so the next heartbeat dials the new server. This also makes the final negative checks fail on the TLS verification rather than on a stale connection.

… restart

TestClient_FollowsCAReplacement restarts the policy server on the same
address several times. A heartbeat sent before the client noticed the
previous server was gone went out on the dead connection and failed with
"Unavailable: error reading from server: EOF", which made the test flaky
in CI.

Wait for the connection to leave READY after each restart so the next
heartbeat dials the new server. This also makes the final negative checks
fail on the TLS verification rather than on a stale connection.
@eniac111
eniac111 merged commit fcc5559 into master Nov 12, 2026
33 checks passed
@eniac111
eniac111 deleted the fix/flaky-ca-replacement-test branch November 12, 2026 00:42
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant