Merge pull request #16797 from guantaol/settings_timeout_test

Fix the test failure with callback-based polling.
pull/16809/head
Guantao Liu 6 years ago committed by GitHub
commit af1b4d6b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/core/transport/chttp2/settings_timeout_test.cc

@ -196,6 +196,8 @@ class Client {
"grpc_pollset_work",
grpc_pollset_work(pollset_, &worker,
grpc_core::ExecCtx::Get()->Now() + 1000));
// Flushes any work scheduled before or during polling.
grpc_core::ExecCtx::Get()->Flush();
gpr_mu_unlock(mu_);
if (state != nullptr && state->done()) return true;
if (grpc_core::ExecCtx::Get()->Now() >= deadline) return false;

Loading…
Cancel
Save