cmccabe commented on a change in pull request #10887: URL: https://github.com/apache/kafka/pull/10887#discussion_r657531976
########## File path: core/src/test/scala/unit/kafka/server/ReplicaManagerTest.scala ########## @@ -1352,8 +1370,7 @@ class ReplicaManagerTest { Optional.of(1)) val fetchResult = sendConsumerFetch(replicaManager, tp0, partitionData, None, timeout = 10) assertNull(fetchResult.get) - - Mockito.when(replicaManager.metadataCache.contains(tp0)).thenReturn(true) + Mockito.when(replicaManager.metadataCache.contains(ArgumentMatchers.eq(tp0))).thenReturn(true) Review comment: your proposed change doesn't compile because metadataCache is not defined in this scope -- 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