Skip to content

Give a slow exchange's test more room on a busy pool - #1005

Merged
SimonCropp merged 1 commit into
mainfrom
slow-exchange-margin
Oct 30, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
slow-exchange-margin

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

ASlowExchangeDoesNotBlockTheNext failed on net48 in the windows job of #1000, which touches nothing it tests.

What happened. The second exchange went unanswered within its ten seconds. The first had already taken about eight seconds to reach its handler, which needs only one background task and one connection. The net48 test process had started seconds before, beside four other test assemblies. So the thread pool was starved, and the server was not the problem.

The change. The hold goes from 30 to 60 seconds and the second exchange from 10 to 30. What is asserted is unchanged: an answer inside any timeout shorter than the hold shows the second exchange was not waiting on the first. A passing run takes no longer than before, since the hold is released as soon as the second exchange is answered.

Tests. The test passes on net48 and net10.0 locally.

ASlowExchangeDoesNotBlockTheNext failed on net48 in CI (#1000's windows
job): the second exchange went unanswered within ten seconds, and the
first had taken eight to reach its handler, in a process started seconds
before beside four other test assemblies. That is the thread pool, not
the server.

The hold is sixty seconds and the second exchange thirty. What is
asserted is unchanged: an answer inside any timeout shorter than the
hold shows the second exchange was not waiting on the first.
@SimonCropp
SimonCropp merged commit afcae13 into main Oct 30, 2026
15 checks passed
@SimonCropp
SimonCropp deleted the slow-exchange-margin branch October 30, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant