Skip to content

Commit

Permalink
[Tech debt] Removes commented out code (#172858)
Browse files Browse the repository at this point in the history
code cleanup from #172732

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
TinaHeiligers and kibanamachine committed Dec 8, 2023
1 parent 9f043ed commit 22df919
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('migration v2', () => {
});

it('clean ups if migration fails', async () => {
const { runMigrations /* , client */ } = await setupNextMinor();
const { runMigrations } = await setupNextMinor();

await expect(runMigrations()).rejects.toThrowErrorMatchingInlineSnapshot(`
"Unable to complete saved object migrations for the [${defaultKibanaIndex}] index: Migrations failed. Reason: 1 corrupt saved object documents were found: corrupt:2baf4de0-a6d4-11ed-ba5a-39196fc76e60
Expand All @@ -63,19 +63,6 @@ describe('migration v2', () => {
);

expect(logRecordWithPit).toBeTruthy();
/* TEMPORARILY DISABLE
const pitId = logRecordWithPit.right.pitId;
expect(pitId).toBeTruthy();
await expect(
client.search({
body: {
pit: { id: pitId },
},
})
// throws an exception that cannot search with closed PIT
).rejects.toThrow(/search_phase_execution_exception/);
*/
});

afterEach(async () => {
Expand Down

0 comments on commit 22df919

Please sign in to comment.