fix BatchServerInventoryViewTest waitForSync() logic
Merge pull request #555 from metamx/fix-test

fix BatchServerInventoryViewTest waitForSync() logic