From 54f40913f44587760515418010938543c953e5be Mon Sep 17 00:00:00 2001 From: Dan Hermann Date: Wed, 28 Jul 2021 17:20:53 -0500 Subject: [PATCH] Fix failing HTTP client stats test (#75527) (#75817) --- .../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 }