Remove redundant code in AbstractRocketMqClientTest (#7285)
This commit is contained in:
parent
ac82016fdd
commit
85b3644787
|
@ -72,9 +72,6 @@ public abstract class AbstractRocketMqClientTest {
|
||||||
container.start();
|
container.start();
|
||||||
ClientConfiguration clientConfiguration =
|
ClientConfiguration clientConfiguration =
|
||||||
ClientConfiguration.newBuilder().setEndpoints(container.endpoints).build();
|
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);
|
FilterExpression filterExpression = new FilterExpression(tag, FilterExpressionType.TAG);
|
||||||
consumer =
|
consumer =
|
||||||
provider
|
provider
|
||||||
|
@ -253,7 +250,7 @@ public abstract class AbstractRocketMqClientTest {
|
||||||
equalTo(
|
equalTo(
|
||||||
AttributeKey.stringArrayKey(
|
AttributeKey.stringArrayKey(
|
||||||
"messaging.header.test_message_header"),
|
"messaging.header.test_message_header"),
|
||||||
Arrays.asList(new String[] {"test"})))
|
Collections.singletonList("test")))
|
||||||
.hasParent(trace.getSpan(0)));
|
.hasParent(trace.getSpan(0)));
|
||||||
sendSpanData.set(trace.getSpan(1));
|
sendSpanData.set(trace.getSpan(1));
|
||||||
},
|
},
|
||||||
|
@ -273,7 +270,7 @@ public abstract class AbstractRocketMqClientTest {
|
||||||
equalTo(
|
equalTo(
|
||||||
AttributeKey.stringArrayKey(
|
AttributeKey.stringArrayKey(
|
||||||
"messaging.header.test_message_header"),
|
"messaging.header.test_message_header"),
|
||||||
Arrays.asList(new String[] {"test"})))
|
Collections.singletonList("test")))
|
||||||
// As the child of receive span.
|
// As the child of receive span.
|
||||||
.hasParent(trace.getSpan(0)),
|
.hasParent(trace.getSpan(0)),
|
||||||
span ->
|
span ->
|
||||||
|
|
Loading…
Reference in New Issue