Skip to content

Commit

Permalink
[ResponseOps] Fix broken search strategy test (#130393) (#132467)
Browse files Browse the repository at this point in the history
* Unskip and add debug

* try this

* lets fail

* this?

* add another

* Add more

* Try this

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit fe76adb)
  • Loading branch information
Chris Roberson committed May 18, 2022
1 parent 7131e30 commit d4427fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions x-pack/test/common/services/bsearch_secure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d4427fa

Please sign in to comment.