mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
tests: Always call backend common.init()
at startup
This provides a place to set the timeout for `common.init()` so that individual tests don't have to.
This commit is contained in:
parent
6953e40c75
commit
fc9b22475a
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ const logLevel = exports.logger.level;
|
||||||
// https://github.com/mochajs/mocha/issues/2640
|
// https://github.com/mochajs/mocha/issues/2640
|
||||||
process.on('unhandledRejection', (reason, promise) => { throw reason; });
|
process.on('unhandledRejection', (reason, promise) => { throw reason; });
|
||||||
|
|
||||||
|
before(async function () {
|
||||||
|
this.timeout(60000);
|
||||||
|
await exports.init();
|
||||||
|
});
|
||||||
|
|
||||||
exports.init = async function () {
|
exports.init = async function () {
|
||||||
if (agentPromise != null) return await agentPromise;
|
if (agentPromise != null) return await agentPromise;
|
||||||
let agentResolve;
|
let agentResolve;
|
||||||
|
|
Loading…
Reference in a new issue