Don't run feeds update until after schema update promise

And tweak feed scheduling in general
This commit is contained in:
Dan Stillman 2017-06-19 00:53:08 -04:00
parent 1372949523
commit 7c020da594
3 changed files with 56 additions and 34 deletions

View file

@ -166,7 +166,7 @@ describe("Zotero.Feeds", function () {
before(function* () {
yield clearFeeds();
sinon.stub(Zotero.Feeds, 'scheduleNextFeedCheck');
sinon.stub(Zotero.Feeds, 'scheduleNextFeedCheck').resolves();
_updateFeed = sinon.stub(Zotero.Feed.prototype, '_updateFeed').resolves();
let url = getTestDataUrl("feed.rss");