From a882f619131b5c41f8b95719d6f0c16476c3cd02 Mon Sep 17 00:00:00 2001 From: Dan Hermann Date: Wed, 21 Jul 2021 08:20:02 -0500 Subject: [PATCH] Fix failing HTTP client stats test (#75527) --- .../rest-api-spec/test/nodes.stats/11_indices_metrics.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml index a3aa6e3593177..3b2ffcd272727 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml @@ -300,7 +300,8 @@ nodes.stats: { metric: http } - is_true: nodes.$node_id - - gte: { nodes.$node_id.http.current_open: 1 } + # in rare test scenarios, the value of current_open can be zero + - gte: { nodes.$node_id.http.current_open: 0 } - gte: { nodes.$node_id.http.total_opened: 1 } - is_true: nodes.$node_id.http.clients - gte: { nodes.$node_id.http.clients.0.id: 1 }