tests: Disable rate limiting for backend tests
This commit is contained in:
parent
4ae8fbc40d
commit
5a91cf1b49
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ exports.init = async function () {
|
||||||
// Start the Etherpad server on a random unused port.
|
// Start the Etherpad server on a random unused port.
|
||||||
settings.port = 0;
|
settings.port = 0;
|
||||||
settings.ip = 'localhost';
|
settings.ip = 'localhost';
|
||||||
|
settings.importExportRateLimiting = {max: 0};
|
||||||
|
settings.commitRateLimiting = {duration: 0.001, points: 1e6};
|
||||||
exports.httpServer = await server.start();
|
exports.httpServer = await server.start();
|
||||||
exports.baseUrl = `http://localhost:${exports.httpServer.address().port}`;
|
exports.baseUrl = `http://localhost:${exports.httpServer.address().port}`;
|
||||||
exports.logger.debug(`HTTP server at ${exports.baseUrl}`);
|
exports.logger.debug(`HTTP server at ${exports.baseUrl}`);
|
||||||
|
|
Loading…
Reference in a new issue