From e09b6d7ba172500d41347ae5c640e037f1cfff00 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 15 Jun 2016 09:02:36 -0400 Subject: [PATCH] Test: Remove and untrue assertion Task status might change between list and get. --- .../elasticsearch/action/admin/cluster/node/tasks/TasksIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java b/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java index ebb93ee7f21..376bd7f3ffa 100644 --- a/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java +++ b/core/src/test/java/org/elasticsearch/action/admin/cluster/node/tasks/TasksIT.java @@ -380,7 +380,7 @@ public class TasksIT extends ESIntegTestCase { assertEquals(task.getType(), fetchedWithGet.getType()); assertEquals(task.getAction(), fetchedWithGet.getAction()); assertEquals(task.getDescription(), fetchedWithGet.getDescription()); - assertEquals(task.getStatus(), fetchedWithGet.getStatus()); + // The status won't always be equal - it might change between the list and the get. assertEquals(task.getStartTime(), fetchedWithGet.getStartTime()); assertThat(fetchedWithGet.getRunningTimeNanos(), greaterThanOrEqualTo(task.getRunningTimeNanos())); assertEquals(task.isCancellable(), fetchedWithGet.isCancellable());