diff options
author | Guantao Liu <guantaol@users.noreply.github.com> | 2018-10-08 11:59:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 11:59:50 -0700 |
commit | af1b4d6b486e527497158e4f35c1003b2a48ea60 (patch) | |
tree | d635ff763b174c192ba1188e11919c88fdbe8e7d /test/core | |
parent | 12d0da651146421deef926128006572ec455943d (diff) | |
parent | 0c18293e556862103999e38ba6c9cc8259eab2cb (diff) |
Merge pull request #16797 from guantaol/settings_timeout_test
Fix the test failure with callback-based polling.
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/transport/chttp2/settings_timeout_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/transport/chttp2/settings_timeout_test.cc b/test/core/transport/chttp2/settings_timeout_test.cc index 39ae587bae..2d6f0a9a62 100644 --- a/test/core/transport/chttp2/settings_timeout_test.cc +++ b/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; |