Skip to content

Commit

Permalink
Stub polling for features so that doesn't show up in telemetry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Feb 22, 2024
1 parent f7ff6ba commit 97fbdb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/flipper/cloud/telemetry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
require 'flipper/cloud/configuration'

RSpec.describe Flipper::Cloud::Telemetry do
before do
# Stub polling for features.
stub_request(:get, "https://www.flippercloud.io/adapter/features?exclude_gate_names=true").
to_return(status: 200, body: "{}")
end

it "phones home and does not update telemetry interval if missing" do
stub = stub_request(:post, "https://www.flippercloud.io/adapter/telemetry").
to_return(status: 200, body: "{}")
Expand Down

0 comments on commit 97fbdb1

Please sign in to comment.