Don't close and reopen window during WebDAV tests
With any luck this will fix the crashing we've been getting in CI.
This commit is contained in:
parent
6a2fcd6898
commit
a376ad8762
1 changed files with 2 additions and 12 deletions
|
@ -123,10 +123,8 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
|
|||
return engine;
|
||||
})
|
||||
|
||||
afterEach(function* () {
|
||||
var defer = new Zotero.Promise.defer();
|
||||
this.httpd.stop(() => defer.resolve());
|
||||
yield defer.promise;
|
||||
afterEach(async function () {
|
||||
await new Promise(request => this.httpd.stop(request));
|
||||
})
|
||||
|
||||
after(function* () {
|
||||
|
@ -141,14 +139,6 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
|
|||
// Tests
|
||||
//
|
||||
describe("Syncing", function () {
|
||||
beforeEach(function* () {
|
||||
win = yield loadZoteroPane();
|
||||
})
|
||||
|
||||
afterEach(function () {
|
||||
win.close();
|
||||
})
|
||||
|
||||
it("should skip downloads if not marked as needed", function* () {
|
||||
var engine = yield setup();
|
||||
|
||||
|
|
Loading…
Reference in a new issue