Browse Source

Fix health docs test

It failed inconsistently when there were pending tasks.
Nik Everett 9 years ago
parent
commit
777ea124c7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      docs/reference/cluster/health.asciidoc

+ 4 - 1
docs/reference/cluster/health.asciidoc

@@ -2,7 +2,7 @@
 == Cluster Health
 
 The cluster health API allows to get a very simple status on the health
-of the cluster. For example, on a single node cluster with a single index
+of the cluster. For example, on a quiet single node cluster with a single index
 with 5 shards and one replica, this:
 
 [source,js]
@@ -33,6 +33,9 @@ Returns this:
 }
 --------------------------------------------------
 // TESTRESPONSE[s/testcluster/docs_integTest/]
+// TESTRESPONSE[s/"number_of_pending_tasks" : 0,/"number_of_pending_tasks" : $body.number_of_pending_tasks,/]
+// TESTRESPONSE[s/"task_max_waiting_in_queue_millis": 0/"task_max_waiting_in_queue_millis": $body.task_max_waiting_in_queue_millis/]
+
 
 The API can also be executed against one or more indices to get just the
 specified indices health: