Skip to content

Commit f135ec0

Browse files
authored
ci: appease rubocop (#303)
1 parent e52cf5d commit f135ec0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/ips_concurrent_worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def bench(duration, **kwargs)
4848
end
4949

5050
sum = 0
51-
group.each do |_, n|
51+
group.each do |_, n| # rubocop:disable Style/HashEachMethods
5252
sum += n
5353
end
5454

test/redis_client/cluster/concurrent_worker/mixin.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_work_group
2222
want = Array.new(size) { |i| i * 2 }
2323
got = []
2424

25-
group.each do |_, v|
25+
group.each do |_, v| # rubocop:disable Style/HashEachMethods
2626
got << v
2727
end
2828

@@ -36,7 +36,7 @@ def test_too_many_tasks
3636
5.times { |i| group.push(i, i) { |n| n } }
3737
assert_raises(InvalidNumberOfTasks) { group.push(5, 5) { |n| n } }
3838
sum = 0
39-
group.each { |_, v| sum += v }
39+
group.each { |_, v| sum += v } # rubocop:disable Style/HashEachMethods
4040
assert_equal(10, sum)
4141
group.close
4242
end
@@ -45,9 +45,9 @@ def test_fewer_tasks
4545
group = @worker.new_group(size: 5)
4646
4.times { |i| group.push(i, i) { |n| n } }
4747
sum = 0
48-
assert_raises(InvalidNumberOfTasks) { group.each { |_, v| sum += v } }
48+
assert_raises(InvalidNumberOfTasks) { group.each { |_, v| sum += v } } # rubocop:disable Style/HashEachMethods
4949
group.push(4, 4) { |n| n }
50-
group.each { |_, v| sum += v }
50+
group.each { |_, v| sum += v } # rubocop:disable Style/HashEachMethods
5151
assert_equal(10, sum)
5252
group.close
5353
end

0 commit comments

Comments
 (0)