Skip to content

Commit

Permalink
Merge pull request #3019 from newrelic/only_run_url_test_on_ci
Browse files Browse the repository at this point in the history
only run special CI when on CI, not locally
  • Loading branch information
tannalynn authored Jan 16, 2025
2 parents d772cd3 + 8e34584 commit 55558cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/helpers/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,9 @@ def skip_unless_ci_cron
skip 'This test only runs as part of the CI cron workflow'
end

# If in a CI (non local dev) context, skip unless operating within the
# special CI context. When in a local dev context or in a special CI context,
# permit the test(s) to run.
# skip unless operating within the special CI context
def skip_unless_special_ci
return if ENV.fetch('CI', nil).nil? || ENV.fetch('SPECIAL_CI', nil)
return if ENV.fetch('SPECIAL_CI', nil)

skip 'This test only runs as part of the special CI workflow'
end
Expand Down

0 comments on commit 55558cb

Please sign in to comment.