File tree 1 file changed +4
-1
lines changed
x-pack/plugin/src/test/java/org/elasticsearch/xpack/test/rest 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
import org .apache .http .HttpStatus ;
11
11
import org .elasticsearch .ElasticsearchException ;
12
+ import org .elasticsearch .action .admin .cluster .bootstrap .GetDiscoveredNodesAction ;
12
13
import org .elasticsearch .client .Request ;
13
14
import org .elasticsearch .client .Response ;
14
15
import org .elasticsearch .common .CheckedFunction ;
@@ -255,7 +256,9 @@ public void cleanup() throws Exception {
255
256
// it could be waiting for pending tasks while monitoring is still running).
256
257
ESRestTestCase .waitForPendingTasks (adminClient (), task -> {
257
258
// Don't check rollup jobs because we clear them in the superclass.
258
- return task .contains (RollupJob .NAME );
259
+ return task .contains (RollupJob .NAME )
260
+ // Also ignore the zen2 discovery task
261
+ || task .contains (GetDiscoveredNodesAction .NAME );
259
262
});
260
263
}
261
264
}
You can’t perform that action at this time.
0 commit comments