chia7712 commented on a change in pull request #9855:
URL: https://github.com/apache/kafka/pull/9855#discussion_r558455483



##########
File path: core/src/test/scala/unit/kafka/utils/TestUtils.scala
##########
@@ -459,41 +459,9 @@ object TestUtils extends Logging {
    * Check that the buffer content from buffer.position() to buffer.limit() is 
equal
    */
   def checkEquals(b1: ByteBuffer, b2: ByteBuffer): Unit = {
-    assertEquals("Buffers should have equal length", b1.limit() - 
b1.position(), b2.limit() - b2.position())
+    assertEquals(b1.limit() - b1.position(), b2.limit() - b2.position(), 
"Buffers should have equal length")
     for(i <- 0 until b1.limit() - b1.position())
-      assertEquals("byte " + i + " byte not equal.", b1.get(b1.position() + 
i), b2.get(b1.position() + i))
-  }
-
-  /**
-   * Throw an exception if the two iterators are of differing lengths or 
contain
-   * different messages on their Nth element
-   */
-  def checkEquals[T](expected: Iterator[T], actual: Iterator[T]): Unit = {

Review comment:
       yep




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to