Skip to content

Commit ec01512

Browse files
committed
[Test Runner] Adds NullPointerException to match_error
1 parent 49d192b commit ec01512

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

elasticsearch-api/api-spec-testing/rspec_matchers.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def compare_string_response(expected_string, response)
323323
when /error parsing field/
324324
message =~ /\[400\]/ ||
325325
actual_error.is_a?(Elastic::Transport::Transport::Errors::BadRequest)
326+
when /NullPointerException/
327+
message =~ /\[400\]/
326328
else
327329
message =~ /#{expected_error}/
328330
end

0 commit comments

Comments
 (0)