Skip to content

Commit

Permalink
Debug correct test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Apr 8, 2024
1 parent 94dd2ee commit 21c18d9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1348,9 +1348,7 @@ export const runActionTestSuite = ({
);
});

// consistently breaking in CI:
// https://github.com/elastic/kibana/issues/167288
it.skip('returns a left es_response_too_large error when a read batch exceeds the maxResponseSize', async () => {
it('returns a left es_response_too_large error when a read batch exceeds the maxResponseSize', async () => {
const openPitTask = openPit({ client, index: 'existing_index_with_docs' });
const pitResponse = (await openPitTask()) as Either.Right<OpenPitResponse>;

Expand All @@ -1362,9 +1360,11 @@ export const runActionTestSuite = ({
searchAfter: undefined,
maxResponseSizeBytes: 500, // set a small size to force the error
});
const rightResponse = (await readWithPitTask()) as Either.Right<ReadWithPit>;
const rightResponse = await readWithPitTask();

await expect(Either.isRight(rightResponse)).toBe(true);
if (Either.isLeft(rightResponse)) {
fail(`Expected a successful response but got ${JSON.stringify(rightResponse.left)}`);
}

readWithPitTask = readWithPit({
client,
Expand Down

0 comments on commit 21c18d9

Please sign in to comment.