Fix the olWaitEvents tests after #150217 broke them
This function causes a queue to wait until all the provided events have completed before running any future scheduled work.