Set test timeout in resetDB() instead of separate this.timeout() calls
'thisArg: this' should be passed to resetDB to have it adjust the timeout
This commit is contained in:
parent
88627adcdb
commit
7633c7de30
4 changed files with 14 additions and 8 deletions
|
@ -445,16 +445,17 @@ describe("Zotero.Sync.Runner", function () {
|
|||
|
||||
describe("#sync()", function () {
|
||||
before(function* () {
|
||||
this.timeout(60000);
|
||||
yield resetDB({
|
||||
thisArg: this,
|
||||
skipBundledFiles: true
|
||||
});
|
||||
|
||||
yield Zotero.Libraries.init();
|
||||
})
|
||||
after(function* () {
|
||||
this.timeout(60000);
|
||||
yield resetDB();
|
||||
yield resetDB({
|
||||
thisArg: this
|
||||
});
|
||||
})
|
||||
|
||||
it("should perform a sync across all libraries", function* () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue