fix some ASAN crashes in EventBaseTest
Summary: Since D3640289 the EventBase destructor has invoked currently scheduled LoopCallbacks. Some of the tests in `EventBaseTest` installed loop callbacks and checked that they were never run during the normal loop invocations. Prior to D3640289 these callbacks never ran. However, post D3640289 these functions do run, and they attempt to update local stack variables that have already gone out of scope. This rearranges these functions to ensure the variables in question outlive the EventBase object. Reviewed By: yfeldblum Differential Revision: D15462319 fbshipit-source-id: 8f490ddbb978fe45711eb7cbda4502dd6a0fb36b
Showing
Please register or sign in to comment