Skip to content

Commit 65ed644

Browse files
committed
fix test
1 parent 7ed6449 commit 65ed644

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/pulsar/pulsar-2.8/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/pulsar/v2_8

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,9 @@ void testSendMessageWithTxn() throws Exception {
686686
.create();
687687
Transaction txn =
688688
client.newTransaction().withTransactionTimeout(5, TimeUnit.SECONDS).build().get();
689+
testing.runWithSpan("parent1", () -> producer.newMessage(txn).value("test1").send());
689690
txn.commit();
690691

691-
testing.runWithSpan("parent1", () -> producer.newMessage(txn).value("test1").send());
692692
testing.waitAndAssertTraces(
693693
trace ->
694694
trace.hasSpansSatisfyingExactly(

0 commit comments

Comments
 (0)