Make touch event test wait until promises are resolved.
Judging from the test history[1], it appears the fix in
crrev.com/c/5630365 did not work. This is another attempt to deflake
this test.
In this attempt, we ensure that the test function itself waits for the
resolution of the actions promise before proceeding. This should
address the flaky leaks. This is still only a speculative fix because
the failure has not reproduced locally even with hundreds of
--enable-leak-detection runs.
Bug: 40861680
Change-Id: I3e29f0cbb4d21964be3a5665aaa7d07882a841b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5677036
Reviewed-by: Kevin Ellis kevers@chromium.org
Commit-Queue: David Awogbemila awogbemila@chromium.org
Cr-Commit-Position: refs/heads/main@{#1323437}