1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/src/lib
Gastón Fournier 16507a971b
chore: re-add max listeners (#6522)
## About the changes
Some tests are reporting this error:

`MaxListenersExceededWarning: Possible EventEmitter memory leak
detected. 11 UPDATE_REVISION listeners added to
[ConfigurationRevisionService]. Use emitter.setMaxListeners() to
increase limit`

I thought it's because of this change
https://github.com/Unleash/unleash/pull/6400#discussion_r1511494201 but
it was not.

I've managed to get a trace of the issue following this
https://stackoverflow.com/q/62897235/239613 and now we can identify
`ConfigurationRevisionService` as one explanation. The reason is that
it's a singleton that should be cleaned up after tests.

E.g.:
https://github.com/Unleash/unleash/actions/runs/8248332132/job/22558419656?pr=6517#step:8:15
2024-03-12 16:34:55 +01:00
..
__snapshots__ feat: add returnGlobalFrontendApiCache flag (#6494) 2024-03-11 14:27:17 +02:00
addons
db chore: rename parametric types to make them clearer (#6500) 2024-03-11 15:41:34 +01:00
domain/project-health fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
error chore: add a generic error for limit's exeeded (#6452) 2024-03-06 19:17:31 +01:00
features chore: re-add max listeners (#6522) 2024-03-12 16:34:55 +01:00
middleware chore: re-add max listeners (#6522) 2024-03-12 16:34:55 +01:00
openapi refactor: rename proxy to frontend api in openapi schemas (#6511) 2024-03-12 10:15:24 +01:00
routes refactor: rename proxy to frontend api (#6502) 2024-03-11 17:30:46 +01:00
schema
services fix: admin token requests does not automatically have id (#6501) 2024-03-12 10:39:37 +01:00
types refactor: rename proxy to frontend api (#6502) 2024-03-11 17:30:46 +01:00
users fix: filter out service and system users from inactive users list (#6134) 2024-02-05 16:41:51 +01:00
util fix: add actions validation (#6481) 2024-03-11 08:18:36 +00:00
app.test.ts
app.ts fix: Allow AuthType None to use valid API tokens (#6247) 2024-02-16 08:24:56 +00:00
create-config.test.ts
create-config.ts chore: consider execution limits per minute and actions limit per (#6462) 2024-03-07 13:02:49 +01:00
default-custom-auth-deny-all.ts
internals.ts refactor: rename proxy to frontend api (#6502) 2024-03-11 17:30:46 +01:00
logger.test.ts
logger.ts
metric-events.ts feat: start monitoring total time to update cache (#6517) 2024-03-12 14:27:04 +02:00
metrics.test.ts feat: start monitoring total time to update cache (#6517) 2024-03-12 14:27:04 +02:00
metrics.ts feat: start monitoring total time to update cache (#6517) 2024-03-12 14:27:04 +02:00
server-impl.test.ts
server-impl.ts chore: reimplementation of app stats (#6155) 2024-02-08 17:15:42 +01:00