Skip to content

Commit

Permalink
Merge pull request #14677 from Bo98/analytics-test-fix
Browse files Browse the repository at this point in the history
test/utils/analytics_spec: fix flaky test
  • Loading branch information
Bo98 committed Feb 17, 2023
2 parents e358035 + 921b427 commit 4700a42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Homebrew/test/utils/analytics_spec.rb
Expand Up @@ -100,6 +100,10 @@
let(:options) { ["--head"].join }
let(:action) { "#{f.full_name} #{options}".strip }

before do
described_class.clear_additional_tags_cache
end

context "when ENV vars is set" do
it "returns nil when HOMEBREW_NO_ANALYTICS is true" do
ENV["HOMEBREW_NO_ANALYTICS"] = "true"
Expand Down

0 comments on commit 4700a42

Please sign in to comment.