elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.62k stars 8.22k forks source link

Improve uiSettings cache cleanup mechanism for testing #130637

Open gsoldevila opened 2 years ago

gsoldevila commented 2 years ago

The following cache self-cleaning mechanism causes multiple tests to emit a warning message, as the logic continues to execute after the tests have finished:

https://github.com/elastic/kibana/blob/18aa549e1fd3ee3a74c154c3e16873bbeb44719e/src/core/server/ui_settings/cache.ts#L30

And the corresponding error:

image

This affects (at least) the following tests:

elasticmachine commented 2 years ago

Pinging @elastic/kibana-core (Team:Core)

elasticmachine commented 1 year ago

Pinging @elastic/appex-sharedux (Team:SharedUX)