From a1f11ade9c4965edfa753ca852125513866a7d69 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 2a99357c2897f..78933012cba70 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 }