Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zzaakiirr committed Aug 27, 2024
1 parent 7c768e6 commit 81fdc47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/command/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
false
end

expect(run_count).to eq(1001) # 1 run and 1000 retries after fail
expect(run_count).to eq(1001)
end

context "with max_retry_count option" do
let(:options) { common_options.merge(retry_on_failure: true, wait: 0, max_retry_count: 1) }
context "with max_retry_count option" do # rubocop:disable RSpec/MultipleMemoizedHelpers
let(:options_with_max_retry_count) { common_options.merge(retry_on_failure: true, wait: 0, max_retry_count: 1) }

it "retries block specified times" do
run_count = 0

command.step(message, **options) do
command.step(message, **options_with_max_retry_count) do
run_count += 1
false
end
Expand Down

0 comments on commit 81fdc47

Please sign in to comment.