From 98bf8dd7e1d0531d61aa2602a62295689a22cc0b Mon Sep 17 00:00:00 2001 From: Ahmed Etefy Date: Mon, 21 Jun 2021 15:25:57 +0200 Subject: [PATCH] Fixed incorrect span check --- packages/ember/tests/acceptance/sentry-performance-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ember/tests/acceptance/sentry-performance-test.js b/packages/ember/tests/acceptance/sentry-performance-test.js index 892d4d0992c3..324938e744c8 100644 --- a/packages/ember/tests/acceptance/sentry-performance-test.js +++ b/packages/ember/tests/acceptance/sentry-performance-test.js @@ -30,7 +30,7 @@ function assertSentryCall(assert, callNumber, options) { // FIXME: For some reason, the last `afterRender` and `destroy` run queue event are not always called. // This is not a blocker, but should be investigated and fixed, as this is the expected output. - if (event.spans[event.spans.length - 1] !== 'ember.runloop.afterRender | undefined') { + if (event.spans[event.spans.length - 2] !== 'ember.runloop.afterRender | undefined') { event.spans.push('ember.runloop.afterRender | undefined'); } if (event.spans[event.spans.length - 1] !== 'ember.runloop.destroy | undefined') {