Use Retry.Mode.SETUP_FEATURE_CLEANUP to improve Elasticsearch test flakiness (DataDog/dd-trace-java#1494)
This commit is contained in:
parent
9f44348217
commit
f2bf50684a
|
@ -119,7 +119,6 @@ dependencies {
|
||||||
testCompile deps.groovy
|
testCompile deps.groovy
|
||||||
testCompile deps.testLogging
|
testCompile deps.testLogging
|
||||||
testCompile group: 'info.solidsoft.spock', name: 'spock-global-unroll', version: '0.5.1'
|
testCompile group: 'info.solidsoft.spock', name: 'spock-global-unroll', version: '0.5.1'
|
||||||
testCompile group: 'com.anotherchrisberry', name: 'spock-retry', version: '0.6.4'
|
|
||||||
testCompile group: 'com.github.stefanbirkner', name: 'system-rules', version: '1.19.0'
|
testCompile group: 'com.github.stefanbirkner', name: 'system-rules', version: '1.19.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
|
||||||
DocRepository repo = applicationContext.getBean(DocRepository)
|
DocRepository repo = applicationContext.getBean(DocRepository)
|
||||||
|
|
||||||
def setup() {
|
def setup() {
|
||||||
|
repo.refresh()
|
||||||
TEST_WRITER.clear()
|
TEST_WRITER.clear()
|
||||||
runUnderTrace("delete") {
|
runUnderTrace("delete") {
|
||||||
repo.deleteAll()
|
repo.deleteAll()
|
||||||
|
|
|
@ -33,6 +33,7 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
|
||||||
DocRepository repo = applicationContext.getBean(DocRepository)
|
DocRepository repo = applicationContext.getBean(DocRepository)
|
||||||
|
|
||||||
def setup() {
|
def setup() {
|
||||||
|
repo.refresh()
|
||||||
TEST_WRITER.clear()
|
TEST_WRITER.clear()
|
||||||
runUnderTrace("delete") {
|
runUnderTrace("delete") {
|
||||||
repo.deleteAll()
|
repo.deleteAll()
|
||||||
|
|
|
@ -61,6 +61,7 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
|
||||||
}
|
}
|
||||||
|
|
||||||
def setup() {
|
def setup() {
|
||||||
|
repo.refresh()
|
||||||
TEST_WRITER.clear()
|
TEST_WRITER.clear()
|
||||||
runUnderTrace("delete") {
|
runUnderTrace("delete") {
|
||||||
repo.deleteAll()
|
repo.deleteAll()
|
||||||
|
|
Loading…
Reference in New Issue