bf6490739d
Make setSyncData return promises in a few places and fix all the places the tests assume that /sync being flushed == the sync result being processed.