Skip to content

Commit

Permalink
chore: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorov-Georgi committed Jan 3, 2025
1 parent 9a8e387 commit e7fab2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/limechain/grandpa/GrandpaServiceTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.limechain.grandpa;

import com.limechain.exception.global.ExecutionFailedException;
import com.limechain.exception.grandpa.GhostExecutionException;
import com.limechain.grandpa.state.GrandpaState;
import com.limechain.network.protocol.grandpa.messages.catchup.res.SignedVote;
import com.limechain.network.protocol.grandpa.messages.commit.Vote;
Expand Down Expand Up @@ -55,7 +55,7 @@ void setUp() {
void testGetGrandpaGHOSTWhereNoBlocksPassThreshold() {
when(grandpaState.getThreshold()).thenReturn(BigInteger.valueOf(10));
when(grandpaState.getPrevotes()).thenReturn(Map.of());
assertThrows(ExecutionFailedException.class, () -> grandpaService.getGrandpaGhost());
assertThrows(GhostExecutionException.class, () -> grandpaService.getGrandpaGhost());
}

@Test
Expand Down

0 comments on commit e7fab2d

Please sign in to comment.