xiangfu0 commented on a change in pull request #6424: URL: https://github.com/apache/incubator-pinot/pull/6424#discussion_r648779267
########## File path: pinot-clients/pinot-java-client/src/test/java/org/apache/pinot/client/ExternalViewReaderTest.java ########## @@ -75,7 +75,7 @@ public void testGetLiveBrokersExceptionState() throws IOException { // Setup final List<String> expectedResult = Arrays.asList(); when(mockZkClient.readData(Mockito.anyString(), Mockito.anyBoolean())).thenThrow( - IOException.class); + RuntimeException.class); Review comment: This is caused by type inference check in java 11 as ZkClient.readData() doesn't throw IOException, so the mock cannot throw it as well. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org