Fix flaky elasticsearch rest 5 test (#4814)

This commit is contained in:
Lauri Tulmin 2021-12-06 17:27:33 +02:00 committed by GitHub
parent 3188350f7f
commit 5703a4022a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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