Skip to content

Commit 139bef6

Browse files
committed
[Test Runner] Skip running tasks
1 parent ffea411 commit 139bef6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ def wait_for_cluster_tasks(client)
277277
loop do
278278
results = client.cluster.pending_tasks
279279
results['tasks'].each do |task|
280-
next if task.empty?
280+
names = ['health-node', 'cluster:monitor/tasks/lists']
281+
next if task.empty? || names.select { |n| task['source'].match? n }.any?
281282

282283
logger.debug "Pending cluster task: #{task}"
283284
count += 1

0 commit comments

Comments
 (0)