You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2024/11/09 05:53:51 UTC

(kafka) branch 3.9 updated: KAFKA-17969 Fix StorageToolTest for 3.9 (#17723)

This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch 3.9
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.9 by this push:
     new 014fdfed446 KAFKA-17969 Fix StorageToolTest for 3.9 (#17723)
014fdfed446 is described below

commit 014fdfed4466860fb52cd561957f6c49b0cd8671
Author: Yung <yu...@gmail.com>
AuthorDate: Sat Nov 9 13:53:45 2024 +0800

    KAFKA-17969 Fix StorageToolTest for 3.9 (#17723)
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 core/src/test/scala/unit/kafka/tools/StorageToolTest.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/test/scala/unit/kafka/tools/StorageToolTest.scala b/core/src/test/scala/unit/kafka/tools/StorageToolTest.scala
index 139d752c77d..da2ca18de20 100644
--- a/core/src/test/scala/unit/kafka/tools/StorageToolTest.scala
+++ b/core/src/test/scala/unit/kafka/tools/StorageToolTest.scala
@@ -325,7 +325,7 @@ Found problem:
     properties.setProperty("log.dirs", availableDirs.mkString(","))
     val stream = new ByteArrayOutputStream()
     assertEquals(0, runFormatCommand(stream, properties, Seq("--feature", "metadata.version=20")))
-    assertTrue(stream.toString().contains("3.9-IV0"),
+    assertTrue(stream.toString().contains("3.8-IV0"),
       "Failed to find content in output: " + stream.toString())
   }
 
@@ -336,7 +336,7 @@ Found problem:
     properties.putAll(defaultStaticQuorumProperties)
     properties.setProperty("log.dirs", availableDirs.mkString(","))
     assertEquals("Unsupported feature: non.existent.feature. Supported features are: " +
-      "group.version, kraft.version, transaction.version",
+      "kraft.version, transaction.version",
         assertThrows(classOf[FormatterException], () =>
           runFormatCommand(new ByteArrayOutputStream(), properties,
             Seq("--feature", "non.existent.feature=20"))).getMessage)