Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoAdoAdo committed Jan 28, 2025
1 parent 943c287 commit 5ca3486
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions consensus/spos/bls/v2/subroundEndRound_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,13 @@ func TestSubroundEndRound_DoEndRoundJobByNode(t *testing.T) {
t.Parallel()

container := consensusMocks.InitConsensusCore()
numCalls := 0
container.SetEquivalentProofsPool(&dataRetriever.ProofsPoolMock{
HasProofCalled: func(shardID uint32, headerHash []byte) bool {
if numCalls <= 1 {
numCalls++
return false
}
return true
},
})
Expand Down

0 comments on commit 5ca3486

Please sign in to comment.