Skip to content

Commit 35c9184

Browse files
committed
unflake ember test
1 parent b290582 commit 35c9184

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/ember/tests/helpers/utils.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@ export function assertSentryTransactions(
6565

6666
// instead of checking the specific order of runloop spans (which is brittle),
6767
// we check (below) that _any_ runloop spans are added
68+
// Also we ignore ui.long-task spans, as they are brittle and may or may not appear
6869
const filteredSpans = spans
69-
// eslint-disable-next-line deprecation/deprecation
70-
.filter(span => !span.op?.startsWith('ui.ember.runloop.'))
70+
.filter(span => {
71+
const op = spanToJSON(span).op;
72+
return !op?.startsWith('ui.ember.runloop.') && !op?.startsWith('ui.long-task');
73+
})
7174
.map(s => {
7275
// eslint-disable-next-line deprecation/deprecation
7376
return `${s.op} | ${spanToJSON(s).description}`;

0 commit comments

Comments
 (0)