Skip to content

Commit

Permalink
Bug 1868911 - Fix condprof failures by disabling message in tests r=o…
Browse files Browse the repository at this point in the history
…mc-reviewers,aminomancer

Differential Revision: https://phabricator.services.mozilla.com/D197638
  • Loading branch information
jwayn committed Jan 4, 2024
1 parent 407ec21 commit d2c463a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/components/newtab/lib/ASRouter.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,9 @@ class _ASRouter {
message.skip_in_tests &&
// `this.messagesEnabledInAutomation` should be stubbed in tests
!this.messagesEnabledInAutomation?.includes(message.id) &&
(Cu.isInAutomation || Services.env.exists("XPCSHELL_TEST_PROFILE_DIR"))
(Cu.isInAutomation ||
Services.env.exists("XPCSHELL_TEST_PROFILE_DIR") ||
Services.env.get("MOZ_AUTOMATION"))
) {
lazy.log.debug(
`Skipping message ${message.id} because ${message.skip_in_tests}`
Expand Down

0 comments on commit d2c463a

Please sign in to comment.