tests: Disable rate limiting for backend tests

This commit is contained in:
Richard Hansen 2021-02-16 20:44:58 -05:00
parent 4ae8fbc40d
commit 5a91cf1b49

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}`);