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:
Dan Stillman 2015-09-29 04:07:26 -04:00
parent 88627adcdb
commit 7633c7de30
4 changed files with 14 additions and 8 deletions

View file

@ -108,8 +108,8 @@ describe("Zotero.Sync.Data.Engine", function () {
// Tests
//
beforeEach(function* () {
this.timeout(60000);
yield resetDB({
thisArg: this,
skipBundledFiles: true
});
@ -119,8 +119,9 @@ describe("Zotero.Sync.Data.Engine", function () {
yield Zotero.Users.setCurrentUsername("testuser");
})
after(function* () {
this.timeout(60000);
yield resetDB();
yield resetDB({
thisArg: this
});
})
describe("Syncing", function () {