Skip to content

Commit a57a6e6

Browse files
authored
chore: appease the cop (#1370)
1 parent 7123346 commit a57a6e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/test/opentelemetry/baggage/propagation/text_map_propagator_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
it 'enforces max of 180 name-value pairs' do
130130
context = OpenTelemetry::Baggage.build(context: OpenTelemetry::Context.empty) do |b|
131-
(0..180).each do |i|
131+
181.times do |i|
132132
b.set_value("k#{i}", "v#{i}")
133133
end
134134
end
@@ -139,7 +139,7 @@
139139

140140
# expect keys indexed from 0 to 180 to be in baggage, but only 0 to 179 in the result
141141
_(OpenTelemetry::Baggage.value('k180', context: context)).wont_be_nil
142-
(0...180).each do |i|
142+
180.times do |i|
143143
_(result).must_include("k#{i}")
144144
end
145145
_(result).wont_include('k180')

0 commit comments

Comments
 (0)