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;
|
return engine;
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(function* () {
|
afterEach(async function () {
|
||||||
var defer = new Zotero.Promise.defer();
|
await new Promise(request => this.httpd.stop(request));
|
||||||
this.httpd.stop(() => defer.resolve());
|
|
||||||
yield defer.promise;
|
|
||||||
})
|
})
|
||||||
|
|
||||||
after(function* () {
|
after(function* () {
|
||||||
|
@ -141,14 +139,6 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
|
||||||
// Tests
|
// Tests
|
||||||
//
|
//
|
||||||
describe("Syncing", function () {
|
describe("Syncing", function () {
|
||||||
beforeEach(function* () {
|
|
||||||
win = yield loadZoteroPane();
|
|
||||||
})
|
|
||||||
|
|
||||||
afterEach(function () {
|
|
||||||
win.close();
|
|
||||||
})
|
|
||||||
|
|
||||||
it("should skip downloads if not marked as needed", function* () {
|
it("should skip downloads if not marked as needed", function* () {
|
||||||
var engine = yield setup();
|
var engine = yield setup();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue