tests: Disable rate limiting for backend tests

pull/4801/head
Richard Hansen 2021-02-16 20:44:58 -05:00
parent 4ae8fbc40d
commit 5a91cf1b49
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ exports.init = async function () {
// Start the Etherpad server on a random unused port.
settings.port = 0;
settings.ip = 'localhost';
settings.importExportRateLimiting = {max: 0};
settings.commitRateLimiting = {duration: 0.001, points: 1e6};
exports.httpServer = await server.start();
exports.baseUrl = `http://localhost:${exports.httpServer.address().port}`;
exports.logger.debug(`HTTP server at ${exports.baseUrl}`);