Skip to content

Commit

Permalink
Cowboy code a default stub for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Sep 3, 2024
1 parent 91e1e43 commit 873418a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

RSpec.configure do |config|
config.before(:example) do
# default stub for telemetry
stub_request(:post, "https://www.flippercloud.io/adapter/telemetry").
to_return(status: 200, body: "", headers: {})
Flipper::Cloud::Telemetry.reset if defined?(Flipper::Cloud::Telemetry) && Flipper::Cloud::Telemetry.respond_to?(:reset)
Flipper::Poller.reset if defined?(Flipper::Poller)
Flipper.unregister_groups
Expand Down

0 comments on commit 873418a

Please sign in to comment.