MINOR: Remove always-passing validation in TestRecordTest#testProducerRecord
Reviewers: Chia-Ping Tsai
@@ -23,6 +23,7 @@ import org.apache.kafka.common.header.Headers;
import org.apache.kafka.common.header.internals.RecordHeader;
import org.apache.kafka.common.header.internals.RecordHeaders;
import org.apache.kafka.common.record.TimestampType;
+
import org.junit.jupiter.api.Test;
import java.time.Instant;
@@ -166,6 +167,5 @@ public class TestRecordTest {
final TestRecord<String, Integer> testRecord = new TestRecord<>(producerRecord);
final TestRecord<String, Integer> expectedRecord = new TestRecord<>(key, value, headers, recordTime);
assertEquals(expectedRecord, testRecord);
- assertNotEquals(expectedRecord, producerRecord);
}
}
