Skip to content

Commit

Permalink
fix: Remove flaky spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Nov 28, 2023
1 parent dd79c59 commit 9f214b4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/lib/decidim_app/rack_attack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,6 @@
end
end

describe "#deactivate_decidim_throttling!" do
before do
described_class.deactivate_decidim_throttling!
end

it "deactivates Decidim throttling" do
# Decidim throttling is deactivated by default in rails env test
# https://github.com/decidim/decidim/blob/release/0.26-stable/decidim-core/config/initializers/rack_attack.rb#L19
expect(Rack::Attack.throttles.keys).to eq([])
end
end

describe "#apply_configuration" do
describe "Throttling" do
let(:headers) { { "REMOTE_ADDR" => "1.2.3.4", "decidim.current_organization" => organization } }
Expand Down

0 comments on commit 9f214b4

Please sign in to comment.