diff options
author | Guantao Liu <guantaol@google.com> | 2018-10-05 13:57:33 -0700 |
---|---|---|
committer | Guantao Liu <guantaol@google.com> | 2018-10-05 13:57:33 -0700 |
commit | 0c18293e556862103999e38ba6c9cc8259eab2cb (patch) | |
tree | 99fb9e750786db5cc43d3f3f332220ed25a6e5bf /test/core/transport/chttp2 | |
parent | 10dc690092082b89520365a94a8e500b2b4d9064 (diff) |
Fix the test failure with callback-based polling.
Diffstat (limited to 'test/core/transport/chttp2')
-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; |