Skip to content

Commit

Permalink
[Files] Fix flaky file creation and deletion tests (elastic#141753)
Browse files Browse the repository at this point in the history
* set has content to false

* [revert this] only run the flaky test

* remove .only
  • Loading branch information
jloleysens authored and WafaaNasr committed Oct 14, 2022
1 parent 13bf29f commit db73600
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 db73600

Please sign in to comment.