Fix flaky elasticsearch rest 5 test
MODIFY
instrumentation/elasticsearch/elasticsearch-rest-5.0/javaagent/src/test/groovy/ElasticsearchRest5Test.groovy
instrumentation/elasticsearch/elasticsearch-rest-5.0/javaagent/src/test/groovy/ElasticsearchRest5Test.groovy
@@ -117,7 +117,8 @@ class ElasticsearchRest5Test extends AgentInstrumentationSpecification {
Map result = new JsonSlurper().parseText(EntityUtils.toString(requestResponse.entity))
expect:
- result.status == "green"
+ // usually this test reports green status, but sometimes it is yellow
+ result.status == "green" || result.status == "yellow"
assertTraces(1) {
trace(0, 3) {

Fix flaky elasticsearch rest 5 test (#4814)