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

Commit

Permalink
fix test TestGovernanceManager_PostEpoch
Browse files Browse the repository at this point in the history
  • Loading branch information
dusannosovic-ethernal committed Sep 8, 2023
1 parent efc3756 commit 3160d04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions consensus/polybft/governance_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ func TestGovernanceManager_PostBlock(t *testing.T) {
Number: 0,
})

chainParams := &chain.Params{}
chainParams.Engine[common.ConsensusName] = genesisPolybftConfig
chainParams := &chain.Params{Engine: map[string]interface{}{common.ConsensusName: genesisPolybftConfig}}
governanceManager, err := newGovernanceManager(chainParams, genesisPolybftConfig,
hclog.NewNullLogger(), state, blockchainMock)
require.NoError(t, err)
Expand Down Expand Up @@ -137,8 +136,7 @@ func TestGovernanceManager_PostBlock(t *testing.T) {
Number: 4,
})

chainParams := &chain.Params{}
chainParams.Engine[common.ConsensusName] = genesisPolybftConfig
chainParams := &chain.Params{Engine: map[string]interface{}{common.ConsensusName: genesisPolybftConfig}}
governanceManager, err := newGovernanceManager(chainParams, genesisPolybftConfig,
hclog.NewNullLogger(), state, blockchainMock)
require.NoError(t, err)
Expand Down

0 comments on commit 3160d04

Please sign in to comment.