Remove redundant code in AbstractRocketMqClientTest (#7285)

This commit is contained in:
Aaron Ai 2022-11-24 00:21:28 +08:00 committed by GitHub
parent ac82016fdd
commit 85b3644787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -72,9 +72,6 @@ public abstract class AbstractRocketMqClientTest {
container.start();
ClientConfiguration clientConfiguration =
ClientConfiguration.newBuilder().setEndpoints(container.endpoints).build();
// Inner topic of the container.
ClientServiceProvider provider = ClientServiceProvider.loadService();
String consumerGroup = "group-normal-topic-0";
FilterExpression filterExpression = new FilterExpression(tag, FilterExpressionType.TAG);
consumer =
provider
@ -253,7 +250,7 @@ public abstract class AbstractRocketMqClientTest {
equalTo(
AttributeKey.stringArrayKey(
"messaging.header.test_message_header"),
Arrays.asList(new String[] {"test"})))
Collections.singletonList("test")))
.hasParent(trace.getSpan(0)));
sendSpanData.set(trace.getSpan(1));
},
@ -273,7 +270,7 @@ public abstract class AbstractRocketMqClientTest {
equalTo(
AttributeKey.stringArrayKey(
"messaging.header.test_message_header"),
Arrays.asList(new String[] {"test"})))
Collections.singletonList("test")))
// As the child of receive span.
.hasParent(trace.getSpan(0)),
span ->