Skip to content

Commit

Permalink
[Files] Fix flaky file creation and deletion tests (elastic#141753) (e…
Browse files Browse the repository at this point in the history
…lastic#142832)

* set has content to false

* [revert this] only run the flaky test

* remove .only

(cherry picked from commit 8219489)

Co-authored-by: Jean-Louis Leysens <[email protected]>
  • Loading branch information
kibanamachine and jloleysens authored Oct 6, 2022
1 parent 565ddb4 commit 9acd875
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ import { createEsFileClient } from '../create_es_file_client';
import { FileClient } from '../types';
import { FileMetadata } from '../../../common';

/**
* This file client is using Elasticsearch interfaces directly to manage files.
*/
// FLAKY: https://github.com/elastic/kibana/issues/139565
describe.skip('ES-index-backed file client', () => {
describe('ES-index-backed file client', () => {
let esClient: TestEnvironmentUtils['esClient'];
let fileClient: FileClient;
let testHarness: TestEnvironmentUtils;
Expand Down Expand Up @@ -197,6 +193,9 @@ describe.skip('ES-index-backed file client', () => {
})
);

await Promise.all([fileClient.delete({ id: id1 }), fileClient.delete({ id: id2 })]);
await Promise.all([
fileClient.delete({ id: id1, hasContent: false }),
fileClient.delete({ id: id2, hasContent: false }),
]);
});
});

0 comments on commit 9acd875

Please sign in to comment.