[Binder Transport] Flush ExecCtx in e2e test (#32971)
WireWriter implementation schedules actions to be run by `ExecCtx`. We should flush pending actions before destructing `end2end_testing::g_transaction_processor`, which need to be alive to handle the scheduled actions. Otherwise, we get heap-use-after-free error because the testing fixture (`end2end_testing::g_transaction_processor`) is destructed before all the scheduled actions are run. This lowers end2end binder transport test failure rate from 0.23% to 0.15%, according to internal tool that runs the test for 15000 times under various configuration.pull/32999/head
parent
e872fb91d9
commit
6c2f4371bb
1 changed files with 1 additions and 0 deletions
Loading…
Reference in new issue