consensus-bizur/src/test/java/com/mboysan/consensus/BizurNodeTest.java
/**
     * Tests cancellation of an operation.
     */
Tests cancellation of an operation.
Tests cancellation of an operation .
@Test
    void testOperationFutureCancellation() throws Exception {
        int numServers = 3;
        init(numServers);
        int leaderId = assertOneLeader();
        Future<Void> result0 = getNode(leaderId).set("key", "val");
        result0.cancel(true);
        assertThrows(CancellationException.class, result0::get);
    }
@ Test void testOperationFutureCancellation ( ) throws Exception { int numServers = 3 ; init ( numServers ) ; int leaderId = assertOneLeader ( ) ; Future < Void > result0 = getNode ( leaderId ) . set ( "key" , "val" ) ; result0 . cancel ( true ) ; assertThrows ( CancellationException . class , result0 :: get ) ; }
Tests cancellation of an operation.
Tests cancellation of an operation .