mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 13:46:10 +02: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
@ -23,6 +23,11 @@ const logLevel = exports.logger.level;
|
||||
// https://github.com/mochajs/mocha/issues/2640
|
||||
process.on('unhandledRejection', (reason, promise) => { throw reason; });
|
||||
|
||||
before(async function () {
|
||||
this.timeout(60000);
|
||||
await exports.init();
|
||||
});
|
||||
|
||||
exports.init = async function () {
|
||||
if (agentPromise != null) return await agentPromise;
|
||||
let agentResolve;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user