jsancio commented on code in PR #12245:
URL: https://github.com/apache/kafka/pull/12245#discussion_r889255627
##########
core/src/test/scala/unit/kafka/tools/StorageToolTest.scala:
##########
@@ -162,7 +163,7 @@ Found problem:
val stream = new ByteArrayOutputStream()
assertEquals(0, StorageTool.
formatCommand(new PrintStream(stream), Seq(tempDir.toString),
metaProperties, MetadataVersion.latest(), ignoreFormatted = false))
- assertEquals("Formatting %s%n".format(tempDir), stream.toString())
+ assertTrue(stream.toString().startsWith("Formatting %s".format(tempDir)))
Review Comment:
Minor but you can use Scala string interpolation. E.g. `s"Formatting
$tempDir"`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]