We've seen a lot of failures due to eager_sync_cancel_test timing out. On investigation this proved to be because wait_for_syncing/2 was waiting forever, because the sync finished before we even got there. Detect this happening, and retry the test if it does.