[ResponseOps] Fix broken search strategy test (#130393) (#132467)

* Unskip and add debug

* try this

* lets fail

* this?

* add another

* Add more

* Try this

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit fe76adbc3a)
This commit is contained in:
Chris Roberson 2022-05-18 17:28:01 -04:00 committed by GitHub
parent 7131e30608
commit d4427fadd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -79,12 +79,11 @@ export const BSecureSearchFactory = (retry: RetryService) => ({
.set('kbn-xsrf', 'true')
.send(options);
}
if (result.status === 500 || result.status === 200) {
if ((result.status === 500 || result.status === 200) && result.body) {
return result;
}
throw new Error('try again');
});
if (body.isRunning) {
const result = await retry.try(async () => {
const resp = await supertestWithoutAuth

View file

@ -43,7 +43,7 @@ export default ({ getService }: FtrProviderContext) => {
const SPACE1 = 'space1';
// Failing: See https://github.com/elastic/kibana/issues/129219
describe.skip('ruleRegistryAlertsSearchStrategy', () => {
describe('ruleRegistryAlertsSearchStrategy', () => {
let kibanaVersion: string;
before(async () => {
kibanaVersion = await kbnClient.version.get();