Skip to content

Simplify connection timeout tests#825

Merged
rschmitt merged 1 commit intoapache:masterfrom
rschmitt:conn-timeout-tests
Apr 23, 2026
Merged

Simplify connection timeout tests#825
rschmitt merged 1 commit intoapache:masterfrom
rschmitt:conn-timeout-tests

Conversation

@rschmitt
Copy link
Copy Markdown
Contributor

Convert to pass/fail style by dropping timing duration assertions. If a ConnectTimeoutException is thrown at all, the configured timeout was applied correctly. This eliminates spurious failures.

Also reduce the timeout from 500ms to 10ms and the select interval from 50ms to 10ms to make the tests run faster.

Convert to pass/fail style by dropping timing duration assertions. If a
`ConnectTimeoutException` is thrown at all, the configured timeout was
applied correctly. This eliminates spurious failures.

Also reduce the timeout from 500ms to 10ms and the select interval
from 50ms to 10ms to make the tests run faster.
@rschmitt rschmitt merged commit 1c5d823 into apache:master Apr 23, 2026
10 checks passed
@rschmitt rschmitt deleted the conn-timeout-tests branch April 23, 2026 01:15
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