test: improved assertion
Original commit: elastic/x-pack-elasticsearch@8361d2e27daf0e16edd8883ebc910ab483b9d462
@@ -137,7 +137,7 @@ public class MlDistributedFailureIT extends BaseMlIntegTestCase {
ClusterState clusterState = client().admin().cluster().prepareState().get().getState();
PersistentTasksCustomMetaData tasks = clusterState.metaData().custom(PersistentTasksCustomMetaData.TYPE);
assertNotNull(tasks);
- assertEquals(2, tasks.taskMap().size());
+ assertEquals("Expected 2 tasks, but got [" + tasks.taskMap() + "]", 2, tasks.taskMap().size());
for (PersistentTask<?> task : tasks.tasks()) {
assertFalse(task.needsReassignment(clusterState.nodes()));
}
