We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7123346 commit a57a6e6Copy full SHA for a57a6e6
api/test/opentelemetry/baggage/propagation/text_map_propagator_test.rb
@@ -128,7 +128,7 @@
128
129
it 'enforces max of 180 name-value pairs' do
130
context = OpenTelemetry::Baggage.build(context: OpenTelemetry::Context.empty) do |b|
131
- (0..180).each do |i|
+ 181.times do |i|
132
b.set_value("k#{i}", "v#{i}")
133
end
134
@@ -139,7 +139,7 @@
139
140
# expect keys indexed from 0 to 180 to be in baggage, but only 0 to 179 in the result
141
_(OpenTelemetry::Baggage.value('k180', context: context)).wont_be_nil
142
- (0...180).each do |i|
+ 180.times do |i|
143
_(result).must_include("k#{i}")
144
145
_(result).wont_include('k180')
0 commit comments