Skip to content

Commit

Permalink
Lower backup poll interval in async_end2end_test
Browse files Browse the repository at this point in the history
  • Loading branch information
y-zeng committed Nov 3, 2017
1 parent 66b740a commit 89f86c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cpp/end2end/async_end2end_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ TEST_P(AsyncEnd2endTest, SequentialRpcs) {
}

TEST_P(AsyncEnd2endTest, ReconnectChannel) {
// GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS is set to 100ms in main()
if (GetParam().inproc) {
return;
}
Expand Down Expand Up @@ -2012,9 +2013,9 @@ INSTANTIATE_TEST_CASE_P(AsyncEnd2endServerTryCancel,
} // namespace grpc

int main(int argc, char** argv) {
// Change the backup poll interval from 5s to 200ms to speed up the
// Change the backup poll interval from 5s to 100ms to speed up the
// ReconnectChannel test
gpr_setenv("GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS", "200");
gpr_setenv("GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS", "100");
grpc_test_init(argc, argv);
gpr_tls_init(&g_is_async_end2end_test);
::testing::InitGoogleTest(&argc, argv);
Expand Down

0 comments on commit 89f86c0

Please sign in to comment.