Fix another cause of syncEventListener test failure

This commit is contained in:
Dan Stillman 2021-03-03 08:39:28 -05:00
parent e8b19934e2
commit 903fc4d9a7

View file

@ -82,7 +82,9 @@ describe("Zotero.Sync.EventListeners", function () {
});
it("should auto-sync after settings change", async function () {
Zotero.Prefs.set('sync.autoSync', false);
var attachment = await importFileAttachment('test.pdf');
Zotero.Prefs.set('sync.autoSync', true);
var mock = sinon.mock(Zotero.Sync.Runner);
var expectation = mock.expects("setSyncTimeout").once();