Fixing test failure (#138156) (#138513)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 27162e0802)

Co-authored-by: doakalexi <109488926+doakalexi@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-08-10 10:21:45 -04:00 committed by GitHub
parent 60230f5bb0
commit 8d37a70fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,12 +356,13 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
],
};
const bulkEditResponse = await retry.try(async () =>
supertest
.post(`${getUrlPrefix(Spaces.space1.id)}/internal/alerting/rules/_bulk_edit`)
.set('kbn-xsrf', 'foo')
.send(payload)
.expect(200)
const bulkEditResponse = await retry.try(
async () =>
await supertest
.post(`${getUrlPrefix(Spaces.space1.id)}/internal/alerting/rules/_bulk_edit`)
.set('kbn-xsrf', 'foo')
.send(payload)
.expect(200)
);
// after applying bulk edit action monitoring still available