Skip to content

Commit 5a026a2

Browse files
committed
[API] Test Runner: Fixes do_action when empty
1 parent 14e2eb8 commit 5a026a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elasticsearch-api/api-spec-testing/test_file/task_group.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def length_match_clauses
284284
ACTIONS = (Test::GROUP_TERMINATORS + ['do']).freeze
285285

286286
def do_actions
287+
return [] if @actions.empty?
287288
@do_actions ||= @actions.group_by { |a| a.keys.first }['do'].map { |definition| Action.new(definition['do']) }
288289
end
289290

0 commit comments

Comments
 (0)