mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Fixed admin tests
* Increased timeout. * Wait for disconnect only if no admintest.
This commit is contained in:
parent
c2699e4528
commit
d8e0975f97
4 changed files with 4 additions and 2 deletions
|
@ -46,7 +46,7 @@ const closeServer = async () => {
|
|||
for (const socket of sockets) socket.destroy(new Error('HTTP server is closing'));
|
||||
}, 5000);
|
||||
let lastLogged = 0;
|
||||
while (sockets.size > 0) {
|
||||
while (sockets.size > 0 && !settings.enableAdminUITests) {
|
||||
if (Date.now() - lastLogged > 1000) { // Rate limit to avoid filling logs.
|
||||
logger.info(`Waiting for ${sockets.size} HTTP clients to disconnect...`);
|
||||
lastLogged = Date.now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue