1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +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 Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
db chore: rename parametric types to make them clearer (#6500) 2024-03-11 15:41:34 +01:00
domain/project-health
error
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
util
app.test.ts
app.ts
create-config.test.ts
create-config.ts
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