diff options
author | Yuchen Zeng <zyc@google.com> | 2017-10-05 21:47:39 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2017-10-30 12:06:52 -0700 |
commit | 0bad30a244e060c602904bef3f3447558d9445fb (patch) | |
tree | 60ce15e78557804d51169d7072b851d6e0d94424 /test | |
parent | d9ce7d9233f90918b39771d5cba605101ccf2b16 (diff) |
Use backup pollser instead of connectivity watcher
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/end2end/async_end2end_test.cc | 5 | ||||
-rw-r--r-- | test/cpp/end2end/end2end_test.cc | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/cpp/end2end/async_end2end_test.cc b/test/cpp/end2end/async_end2end_test.cc index b7634d0438..4d1beb1d1d 100644 --- a/test/cpp/end2end/async_end2end_test.cc +++ b/test/cpp/end2end/async_end2end_test.cc @@ -470,8 +470,9 @@ TEST_P(AsyncEnd2endTest, ReconnectChannel) { BuildAndStartServer(); // It needs more than kConnectivityCheckIntervalMsec time to reconnect the // channel. - gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), - gpr_time_from_millis(1600, GPR_TIMESPAN))); + gpr_sleep_until(gpr_time_add( + gpr_now(GPR_CLOCK_REALTIME), + gpr_time_from_millis(600 * grpc_test_slowdown_factor(), GPR_TIMESPAN))); SendRpc(1); } diff --git a/test/cpp/end2end/end2end_test.cc b/test/cpp/end2end/end2end_test.cc index 1aa547d4e3..73f5555539 100644 --- a/test/cpp/end2end/end2end_test.cc +++ b/test/cpp/end2end/end2end_test.cc @@ -709,8 +709,9 @@ TEST_P(End2endTest, ReconnectChannel) { RestartServer(std::shared_ptr<AuthMetadataProcessor>()); // It needs more than kConnectivityCheckIntervalMsec time to reconnect the // channel. - gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), - gpr_time_from_millis(1600, GPR_TIMESPAN))); + gpr_sleep_until(gpr_time_add( + gpr_now(GPR_CLOCK_REALTIME), + gpr_time_from_millis(600 * grpc_test_slowdown_factor(), GPR_TIMESPAN))); SendRpc(stub_.get(), 1, false); } |