-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add connection pool pre-warming tests #8358
Conversation
ean5533
commented
Apr 11, 2024
- The first test just needed to be uncommented now that Redo TaskFaker's internal queue #8348 is merged
- A second test was added to exercise http2-specific functionality
1. The first test just needed to be uncommented now that #8348 is merged 2. A second test was added to exercise http2-specific functionality
4be0487
to
510b46a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, very readable.
forceConnectionsToExpire(pool, routePlanner, expireTime) | ||
assertThat(pool.connectionCount()).isEqualTo(2) | ||
|
||
// Excess connections aren't removed until they idle out, even if no longer needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great comments here
assertThat(pool.connectionCount()).isEqualTo(1) | ||
} | ||
|
||
@Test fun connectionPreWarmingHttp2() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so cool
This is still 50% flaky. |
Hm, interesting, I don't immediately know what would cause any non-determinism in this test. I'll take a look on Monday. |