Skip to content

Commit 1236a3c

Browse files
committed
Temporary fix to E2E test to unblock release
1 parent c64560a commit 1236a3c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

build_tools/aws-sdk-code-generator/spec/protocol_tests_spec_helper.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,7 @@ def match_resp_data(test_case, http_resp, it)
314314
expected_data =
315315
if error_case?(test_case)
316316
error_shape = http_resp.context.operation.errors.find do |err|
317-
shape =
318-
if err.shape['error']
319-
err.shape['error']['code']
320-
else
321-
err.shape.name
322-
end
323-
shape == test_case['errorCode']
317+
err.shape.name == test_case['errorCode']
324318
end
325319
raise "Unable to find #{test_case['errorCode']} in error shapes" if error_shape.nil?
326320

0 commit comments

Comments
 (0)