Skip to content

Commit b205e91

Browse files
committed
Revert "Temporary fix to E2E test to unblock release"
This reverts commit 1236a3c.
1 parent 649e4eb commit b205e91

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,13 @@ 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-
err.shape.name == test_case['errorCode']
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']
318324
end
319325
raise "Unable to find #{test_case['errorCode']} in error shapes" if error_shape.nil?
320326

0 commit comments

Comments
 (0)