From ac937706be2cdbf262a7dfea6c48346741f02370 Mon Sep 17 00:00:00 2001 From: Ismael Juma Date: Thu, 10 Oct 2019 21:37:37 -0700 Subject: [PATCH] MINOR: Improve assert in testCreateTopicsResponseMetadataAndConfig (#7484) It's much easier to debug when one can see the config names than one can only see a number. Reviewers: Rajini Sivaram --- .../kafka/api/SaslSslAdminClientIntegrationTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/scala/integration/kafka/api/SaslSslAdminClientIntegrationTest.scala b/core/src/test/scala/integration/kafka/api/SaslSslAdminClientIntegrationTest.scala index 2a8131e560f..ba09029c9ef 100644 --- a/core/src/test/scala/integration/kafka/api/SaslSslAdminClientIntegrationTest.scala +++ b/core/src/test/scala/integration/kafka/api/SaslSslAdminClientIntegrationTest.scala @@ -450,7 +450,7 @@ class SaslSslAdminClientIntegrationTest extends AdminClientIntegrationTest with val topicResource = new ConfigResource(ConfigResource.Type.TOPIC, topic1) val describeResponseConfig = client.describeConfigs(List(topicResource).asJava).values.get(topicResource).get().entries.asScala - assertEquals(describeResponseConfig.size, createResponseConfig.size) + assertEquals(describeResponseConfig.map(_.name).toSet, createResponseConfig.map(_.name).toSet) describeResponseConfig.foreach { describeEntry => val name = describeEntry.name val createEntry = createResponseConfig.find(_.name == name).get