socutes commented on a change in pull request #10749:
URL: https://github.com/apache/kafka/pull/10749#discussion_r642010687



##########
File path: raft/src/test/java/org/apache/kafka/raft/QuorumStateTest.java
##########
@@ -945,11 +946,10 @@ public void testObserverUnattachedToFollower() throws 
IOException {
     }
 
     @Test
-    public void testInitializeWithCorruptedStore() throws IOException {
-        QuorumStateStore stateStore = Mockito.mock(QuorumStateStore.class);
-        
Mockito.doThrow(IOException.class).when(stateStore).readElectionState();
+    public void testInitializeWithCorruptedStore() {
         QuorumState state = buildQuorumState(Utils.mkSet(localId));
-
+        QuorumStateStore stateStore = Mockito.mock(QuorumStateStore.class);
+        
Mockito.doThrow(UncheckedIOException.class).when(stateStore).readElectionState();

Review comment:
       @showuon Please review the changes again! Thanks.




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