We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90a667b commit d1cad41Copy full SHA for d1cad41
api-spec-testing/test_file.rb
@@ -229,7 +229,6 @@ def wait_for_pending_tasks(client)
229
end
230
231
def wait_for_cluster_tasks(client)
232
- tasks_filter = ['delete-index', 'remove-data-stream', 'ilm-history']
233
time = Time.now.to_i
234
count = 0
235
@@ -239,9 +238,7 @@ def wait_for_cluster_tasks(client)
239
238
next if task.empty?
240
241
LOGGER.debug "Pending cluster task: #{task}"
242
- tasks_filter.map do |filter|
243
- count += 1 if task['source'].include? filter
244
- end
+ count += 1
245
246
break unless count.positive? && Time.now.to_i < (time + 30)
247
0 commit comments