Skip to content

Commit

Permalink
chore(finite_loop): increase MAX_ITERATION_COUNT to 1_000
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Oct 30, 2022
1 parent 930d5ce commit 00d2eb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/convenient_service/support/finite_loop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ConvenientService
module Support
module FiniteLoop
MAX_ITERATION_COUNT = 100
MAX_ITERATION_COUNT = 1_000

module Errors
class MaxIterationCountExceeded < ::StandardError
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/convenient_service/support/finite_loop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
RSpec.describe ConvenientService::Support::FiniteLoop do
example_group "constants" do
describe "::MAX_ITERATION_COUNT" do
it "is equal to 100" do
expect(described_class::MAX_ITERATION_COUNT).to eq(100)
it "is equal to 1000" do
expect(described_class::MAX_ITERATION_COUNT).to eq(1_000)
end
end
end
Expand Down

0 comments on commit 00d2eb9

Please sign in to comment.