Skip to content

Commit 8a21fb2

Browse files
crespocarlosqn895
authored andcommitted
1 parent 1fa8a38 commit 8a21fb2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/alerts/transaction_duration.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
230230
let ruleId: string;
231231
let alerts: ApmAlertFields[];
232232

233-
beforeEach(async () => {
233+
before(async () => {
234234
const createdRule = await alertingApi.createRule({
235235
ruleTypeId: ApmRuleType.TransactionDuration,
236236
name: 'Apm transaction duration with kql filter',
@@ -261,7 +261,7 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
261261
).hits.hits.map((hit) => hit._source) as ApmAlertFields[];
262262
});
263263

264-
afterEach(() =>
264+
after(() =>
265265
alertingApi.cleanUpAlerts({
266266
roleAuthc,
267267
ruleId,

x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/alerts/transaction_error_rate.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
240240
let ruleId: string;
241241
let alerts: ApmAlertFields[];
242242

243-
beforeEach(async () => {
243+
before(async () => {
244244
const createdRule = await alertingApi.createRule({
245245
ruleTypeId: ApmRuleType.TransactionErrorRate,
246246
name: 'Apm transaction error rate without kql query',
@@ -282,7 +282,7 @@ export default function ApiTest({ getService }: DeploymentAgnosticFtrProviderCon
282282
).hits.hits.map((hit) => hit._source) as ApmAlertFields[];
283283
});
284284

285-
afterEach(() =>
285+
after(() =>
286286
alertingApi.cleanUpAlerts({
287287
roleAuthc,
288288
ruleId,

0 commit comments

Comments
 (0)