From 10d592aec2f2d10f749346517bc1e6a993215eae Mon Sep 17 00:00:00 2001 From: Oguzhan Soykan Date: Mon, 14 Oct 2024 17:14:08 +0200 Subject: [PATCH] spring-kafka: instead of list, use iterable to match --- .../com/trendyol/stove/testing/e2e/kafka/KafkaSystem.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starters/spring/stove-spring-testing-e2e-kafka/src/main/kotlin/com/trendyol/stove/testing/e2e/kafka/KafkaSystem.kt b/starters/spring/stove-spring-testing-e2e-kafka/src/main/kotlin/com/trendyol/stove/testing/e2e/kafka/KafkaSystem.kt index 335ed895..8d2cc7e2 100644 --- a/starters/spring/stove-spring-testing-e2e-kafka/src/main/kotlin/com/trendyol/stove/testing/e2e/kafka/KafkaSystem.kt +++ b/starters/spring/stove-spring-testing-e2e-kafka/src/main/kotlin/com/trendyol/stove/testing/e2e/kafka/KafkaSystem.kt @@ -69,8 +69,8 @@ class KafkaSystem( .map { when (it) { is String -> it - is List<*> -> (it as List).joinToString(",") - else -> "" + is Iterable<*> -> (it as Iterable).joinToString(",") + else -> it.toString() } }.isSome { it.contains(exposedConfiguration.bootstrapServers) }