Skip to content

Commit 54f4091

Browse files
authored
Fix failing HTTP client stats test (#75527) (#75817)
1 parent c485559 commit 54f4091

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@
300300
nodes.stats: { metric: http }
301301

302302
- is_true: nodes.$node_id
303-
- gte: { nodes.$node_id.http.current_open: 1 }
303+
# in rare test scenarios, the value of current_open can be zero
304+
- gte: { nodes.$node_id.http.current_open: 0 }
304305
- gte: { nodes.$node_id.http.total_opened: 1 }
305306
- is_true: nodes.$node_id.http.clients
306307
- gte: { nodes.$node_id.http.clients.0.id: 1 }

0 commit comments

Comments
 (0)