-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Fix grpclb_end2end_test InitiallyEmptyServerlist #14568
Conversation
|
|
0f4ea38
to
5a05511
Compare
|
|
|
5a1a715
to
9732ac4
Compare
|
|
9732ac4
to
33efa49
Compare
|
|
33efa49
to
449f03a
Compare
|
@@ -536,10 +534,10 @@ class GrpclbEnd2endTest : public ::testing::Test { | |||
return status; | |||
} | |||
|
|||
void CheckRpcSendOk(const size_t times = 1) { | |||
void CheckRpcSendOk(size_t times = 1, int timeout_ms = 1000) { |
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.
times
should still be const? So does timeout_ms
.
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.
Making const a variable passed by value makes no difference.
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.
BUT, well, it'd be tantamount to declaring any other variable local to the function as const
, and I'm usually the one preaching about it, so yeah, let me make them both const.
|
449f03a
to
e3438c4
Compare
|
|
|
1 similar comment
|
|
3 similar comments
|
|
|
|
1 similar comment
|
After #14507, timing has slightly changed. In the case of the
InitiallyEmptyServerlist
, subchannels weren't become connected quickly enough to become part of the RR's ready list before the test checked that every backend processed an RPC.I've further simplified the test, which should only concern itself with verifying that calls are delayed at least until the serverlist has been received.
Fixes #14567