From 415d40e6fc133270ead2774c97967e5f68667c90 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Tue, 25 Apr 2017 12:16:01 +0200 Subject: [PATCH] test: improved assertion Original commit: elastic/x-pack-elasticsearch@8361d2e27daf0e16edd8883ebc910ab483b9d462 --- .../xpack/ml/integration/MlDistributedFailureIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlDistributedFailureIT.java b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlDistributedFailureIT.java index 9e9da2818dd..853bbdb002f 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlDistributedFailureIT.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/ml/integration/MlDistributedFailureIT.java @@ -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())); }