File tree 1 file changed +2
-3
lines changed
clients/src/test/java/org/apache/kafka/clients/consumer/internals
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3662,9 +3662,8 @@ public void testFetcherDontCacheAnyData() {
3662
3662
LinkedHashMap <TopicPartition , FetchResponseData .PartitionData > responseData = fetchResponse .responseData (topicNames , version );
3663
3663
assertEquals (topicNames .size (), responseData .size ());
3664
3664
responseData .forEach ((topicPartition , partitionData ) -> assertEquals (records , partitionData .records ()));
3665
- LinkedHashMap <TopicPartition , FetchResponseData .PartitionData > nonResponseData = fetchResponse .responseData (emptyMap (), version );
3666
- assertEquals (emptyMap ().size (), nonResponseData .size ());
3667
- nonResponseData .forEach ((topicPartition , partitionData ) -> assertEquals (MemoryRecords .EMPTY , partitionData .records ()));
3665
+ LinkedHashMap <TopicPartition , FetchResponseData .PartitionData > nonResponseData = fetchResponse .responseData (Map .of (), version );
3666
+ assertTrue (nonResponseData .isEmpty ());
3668
3667
}
3669
3668
3670
3669
private OffsetsForLeaderEpochResponse prepareOffsetsForLeaderEpochResponse (
You can’t perform that action at this time.
0 commit comments