[8.9] Flaky test: rolling file appender (#162851) (#163124)

# Backport

This will backport the following commits from `main` to `8.9`:
- [Flaky test: rolling file appender
(#162851)](https://github.com/elastic/kibana/pull/162851)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Christiane (Tina)
Heiligers","email":"christiane.heiligers@elastic.co"},"sourceCommit":{"committedDate":"2023-08-03T20:46:14Z","message":"Flaky
test: rolling file appender (#162851)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Ahmad Bamieh
<ahmad.bamyeh@elastic.co>","sha":"b443c0cb9dfd6e34850b2403c8a45f655130e03d","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","Feature:Logging","v8.10.0","v8.9.1"],"number":162851,"url":"https://github.com/elastic/kibana/pull/162851","mergeCommit":{"message":"Flaky
test: rolling file appender (#162851)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Ahmad Bamieh
<ahmad.bamyeh@elastic.co>","sha":"b443c0cb9dfd6e34850b2403c8a45f655130e03d"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162851","number":162851,"mergeCommit":{"message":"Flaky
test: rolling file appender (#162851)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Ahmad Bamieh
<ahmad.bamyeh@elastic.co>","sha":"b443c0cb9dfd6e34850b2403c8a45f655130e03d"}},{"branch":"8.9","label":"v8.9.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
This commit is contained in:
Kibana Machine 2023-08-03 17:41:03 -04:00 committed by GitHub
parent 26eb89a395
commit 7b61ce382a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,8 +59,7 @@ describe('RollingFileAppender', () => {
const message = (index: number) => `some message of around 40 bytes number ${index}`;
const expectedFileContent = (indices: number[]) => indices.map(message).join('\n') + '\n';
// FLAKY: https://github.com/elastic/kibana/issues/108633
describe.skip('`size-limit` policy with `numeric` strategy', () => {
describe('`size-limit` policy with `numeric` strategy', () => {
it('rolls the log file in the correct order', async () => {
root = createRoot({
type: 'rolling-file',