Skip to content

Commit 507350f

Browse files
committed
fix test
1 parent 837675e commit 507350f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

conventions/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ tasks.withType<Test>().configureEach {
369369

370370
// All tests must complete within 15 minutes.
371371
// This value is quite big because with lower values (3 mins) we were experiencing large number of false positives
372-
timeout.set(Duration.ofMinutes(30))
372+
timeout.set(Duration.ofMinutes(15))
373373

374374
develocity.testRetry {
375375
// You can see tests that were retried by this mechanism in the collected test reports and build scans.

instrumentation/pulsar/pulsar-2.8/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8/TransactionImplInstrumentation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
public class TransactionImplInstrumentation implements TypeInstrumentation {
2323
@Override
2424
public ElementMatcher<TypeDescription> typeMatcher() {
25-
return named("org.apache.pulsar.client.impl.ProducerImpl");
25+
return named("org.apache.pulsar.client.impl.transaction.TransactionImpl");
2626
}
2727

2828
@Override

instrumentation/pulsar/pulsar-2.8/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8/AbstractPulsarClientTest.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,9 @@ static void beforeAll() throws PulsarClientException {
8888
pulsar =
8989
new PulsarContainer(DEFAULT_IMAGE_NAME)
9090
.withEnv("PULSAR_MEM", "-Xmx128m")
91-
.withEnv("PULSAR_PREFIX_transactionCoordinatorEnabled", "true")
92-
.withEnv(
93-
"PULSAR_PREFIX_transactionMetadataStoreProviderClassName",
94-
"org.apache.pulsar.transaction.coordinator.impl.InMemTransactionMetadataStoreProvider")
95-
.withEnv(
96-
"PULSAR_PREFIX_transactionBufferProviderClassName",
97-
"org.apache.pulsar.broker.transaction.buffer.impl.InMemTransactionBufferProvider")
9891
.withLogConsumer(new Slf4jLogConsumer(logger))
99-
.withStartupTimeout(Duration.ofMinutes(2));
92+
.withStartupTimeout(Duration.ofMinutes(2))
93+
.withTransactions();
10094
pulsar.start();
10195

10296
brokerHost = pulsar.getHost();

0 commit comments

Comments
 (0)