Revert workaround for a spock bug (#6154)
This commit is contained in:
parent
b992e894bc
commit
1c388d46fc
|
@ -24,12 +24,7 @@ class SnsCamelTest extends AgentInstrumentationSpecification {
|
|||
String queueName = "snsCamelTest"
|
||||
def camelApp = new CamelSpringApp(awsConnector, SnsConfig, ImmutableMap.of("topicName", topicName, "queueName", queueName))
|
||||
|
||||
// TODO: def (queueUrl, topicArn) fails to compile, switch back when this is fixed in spock
|
||||
// https://github.com/spockframework/spock/pull/1333
|
||||
// def (queueUrl, topicArn) = setupTestInfrastructure(queueName, topicName)
|
||||
Tuple tuple = setupTestInfrastructure(queueName, topicName)
|
||||
def queueUrl = tuple.get(0)
|
||||
def topicArn = tuple.get(1)
|
||||
def (queueUrl, topicArn) = setupTestInfrastructure(queueName, topicName)
|
||||
waitAndClearSetupTraces(queueUrl, queueName)
|
||||
|
||||
when:
|
||||
|
@ -66,12 +61,7 @@ class SnsCamelTest extends AgentInstrumentationSpecification {
|
|||
String queueName = "snsCamelTest"
|
||||
def camelApp = new CamelSpringApp(awsConnector, SnsConfig, ImmutableMap.of("topicName", topicName, "queueName", queueName))
|
||||
|
||||
// TODO: def (queueUrl, topicArn) fails to compile, switch back when this is fixed in spock
|
||||
// https://github.com/spockframework/spock/pull/1333
|
||||
// def (queueUrl, topicArn) = setupTestInfrastructure(queueName, topicName)
|
||||
Tuple tuple = setupTestInfrastructure(queueName, topicName)
|
||||
def queueUrl = tuple.get(0)
|
||||
def topicArn = tuple.get(1)
|
||||
def (queueUrl, topicArn) = setupTestInfrastructure(queueName, topicName)
|
||||
waitAndClearSetupTraces(queueUrl, queueName)
|
||||
|
||||
when:
|
||||
|
|
|
@ -495,10 +495,7 @@ class JdbcInstrumentationTest extends AgentInstrumentationSpecification {
|
|||
connection = driver.connect(jdbcUrl, null)
|
||||
}
|
||||
|
||||
// TODO: def (Statement statement, ResultSet rs) fails to compile, switch back when this is fixed in spock
|
||||
// https://github.com/spockframework/spock/pull/1333
|
||||
// def (Statement statement, ResultSet rs) = runWithSpan("parent") {
|
||||
Tuple tuple = runWithSpan("parent") {
|
||||
def (Statement statement, ResultSet rs) = runWithSpan("parent") {
|
||||
if (prepareStatement) {
|
||||
def stmt = connection.prepareStatement(query)
|
||||
return new Tuple(stmt, stmt.executeQuery())
|
||||
|
@ -507,8 +504,6 @@ class JdbcInstrumentationTest extends AgentInstrumentationSpecification {
|
|||
def stmt = connection.createStatement()
|
||||
return new Tuple(stmt, stmt.executeQuery(query))
|
||||
}
|
||||
Statement statement = tuple.get(0)
|
||||
ResultSet rs = tuple.get(1)
|
||||
|
||||
then:
|
||||
rs.next()
|
||||
|
|
Loading…
Reference in New Issue