Skip to content

Commit 0def203

Browse files
committed
Fixed more tests
1 parent 9466113 commit 0def203

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

dd-java-agent/instrumentation/kafka-clients-0.11/src/test/groovy/KafkaClientTestBase.groovy

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -285,20 +285,18 @@ abstract class KafkaClientTestBase extends VersionedNamingTestBase {
285285
if (isDataStreamsEnabled()) {
286286
StatsGroup first = TEST_DATA_STREAMS_WRITER.groups.find { it.parentHash == 0 }
287287
verifyAll(first) {
288-
edgeTags == ["direction:out", "kafka_cluster_id:$clusterId", "topic:$SHARED_TOPIC".toString(), "type:kafka"]
289-
edgeTags.size() == 4
288+
tags == DataStreamsTags.fromTags("direction:out", "kafka_cluster_id:$clusterId", "topic:$SHARED_TOPIC".toString(), "type:kafka")
290289
}
291290

292291
StatsGroup second = TEST_DATA_STREAMS_WRITER.groups.find { it.parentHash == first.hash }
293292
verifyAll(second) {
294-
edgeTags == [
293+
tags == DataStreamsTags.fromTags(
295294
"direction:in",
296295
"group:sender",
297296
"kafka_cluster_id:$clusterId",
298297
"topic:$SHARED_TOPIC".toString(),
299298
"type:kafka"
300-
]
301-
edgeTags.size() == 5
299+
)
302300
}
303301
List<String> produce = [
304302
"kafka_cluster_id:$clusterId",
@@ -433,25 +431,23 @@ abstract class KafkaClientTestBase extends VersionedNamingTestBase {
433431
if (isDataStreamsEnabled()) {
434432
StatsGroup first = TEST_DATA_STREAMS_WRITER.groups.find { it.parentHash == 0 }
435433
verifyAll(first) {
436-
edgeTags == [
434+
tags == DataStreamsTags.fromTags(
437435
"direction:out",
438436
"kafka_cluster_id:$clusterId".toString(),
439437
"topic:$SHARED_TOPIC".toString(),
440438
"type:kafka"
441-
]
442-
edgeTags.size() == 4
439+
)
443440
}
444441

445442
StatsGroup second = TEST_DATA_STREAMS_WRITER.groups.find { it.parentHash == first.hash }
446443
verifyAll(second) {
447-
edgeTags == [
444+
tags == DataStreamsTags.fromTags(
448445
"direction:in",
449446
"group:sender",
450447
"kafka_cluster_id:$clusterId".toString(),
451448
"topic:$SHARED_TOPIC".toString(),
452449
"type:kafka"
453-
]
454-
edgeTags.size() == 5
450+
)
455451
}
456452
List<String> produce = [
457453
"kafka_cluster_id:$clusterId".toString(),

0 commit comments

Comments
 (0)