Lettuce: wait for trace after setup code
Otherwise that trace may land at some random point in time after and
cause flaky tests.
MODIFY
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceSyncClientTest.groovy
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceSyncClientTest.groovy
@@ -56,6 +56,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
redisServer.start()
StatefulConnection connection = redisClient.connect()
syncCommands = connection.sync()
+ TEST_WRITER.waitForTraces(1)
+ TEST_WRITER.clear()
}
def cleanupSpec() {

Lettuce: wait for trace after setup code

Otherwise that trace may land at some random point in time after and
cause flaky tests.