Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Sep 5, 2023
1 parent a0e79f2 commit 9a75e4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consensus/polybft/fsm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ func TestFSM_VerifyStateTransactions_DistributeRewards(t *testing.T) {
validators: validatorSet,
distributeRewardsInput: createTestDistributeRewardsInput(t, 0, validators.GetPublicIdentities(), 10),
logger: hclog.NewNullLogger(),
forks: &chain.Forks{chain.Governance: chain.NewFork(0)},
}

distributeRewardsTx, err := fsm.createDistributeRewardsTx()
Expand All @@ -603,6 +604,7 @@ func TestFSM_VerifyStateTransactions_DistributeRewards(t *testing.T) {
validators: validatorSet,
distributeRewardsInput: createTestDistributeRewardsInput(t, 0, validators.GetPublicIdentities(), 10),
logger: hclog.NewNullLogger(),
forks: &chain.Forks{chain.Governance: chain.NewFork(0)},
}

distributeRewardsTx, err := fsm.createDistributeRewardsTx()
Expand All @@ -621,6 +623,7 @@ func TestFSM_VerifyStateTransactions_DistributeRewards(t *testing.T) {
validators: validatorSet,
distributeRewardsInput: createTestDistributeRewardsInput(t, 0, validators.GetPublicIdentities(), 10),
logger: hclog.NewNullLogger(),
forks: &chain.Forks{chain.Governance: chain.NewFork(0)},
}

distributeRewardsTx, err := fsm.createDistributeRewardsTx()
Expand All @@ -638,6 +641,7 @@ func TestFSM_VerifyStateTransactions_DistributeRewards(t *testing.T) {
parent: &types.Header{Number: 9},
validators: validatorSet,
logger: hclog.NewNullLogger(),
forks: &chain.Forks{chain.Governance: chain.NewFork(0)},
}

err := fsm.VerifyStateTransactions([]*types.Transaction{})
Expand Down

0 comments on commit 9a75e4c

Please sign in to comment.