Skip to content

Commit 6621ae7

Browse files
committed
Expand test range
1 parent b417159 commit 6621ae7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

gems/aws-sdk-core/spec/aws/plugins/recursion_detection_spec.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ module Plugins
8989
end
9090

9191
context 'X_AMX_TRACE_ID with invalid characters' do
92-
let(:env_trace_id) { "invalid header" + 31.chr }
92+
(0..31).each do |char|
93+
let(:env_trace_id) { "invalid header" + char.chr }
9394

94-
it 'validates the trace-id and raises an error' do
95-
expect do
96-
client.operation_with_trace_id
97-
end.to raise_error(ArgumentError)
95+
it "validates the trace-id with #{char} and raises an error" do
96+
expect do
97+
client.operation_with_trace_id
98+
end.to raise_error(ArgumentError)
99+
end
98100
end
99101
end
100102
end

0 commit comments

Comments
 (0)