Skip to content

Commit

Permalink
Corrected tests to use consesnsus_Core for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkLord017 committed Sep 22, 2024
1 parent 9b7137d commit 1ce4468
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func TestMainnetBaseConfig(t *testing.T) {
if !reflect.DeepEqual(config.Chain, mainnetConfig.Chain) {
t.Errorf("Expected Chain to be %v, but got %v", mainnetConfig.Chain, config.Chain)
}
if !reflect.DeepEqual(consensus_core.Forks, mainnetConfig.Forks) {
t.Errorf("Expected Forks to be %v, but got %v", mainnetConfig.Forks, consensus_core.Forks)
if !reflect.DeepEqual(config.Forks, mainnetConfig.Forks) {
t.Errorf("Expected Forks to be %v, but got %v", mainnetConfig.Forks, config.Forks)
}
if *config.RpcBindIp != mainnetConfig.RpcBindIp {
t.Errorf("Expected RpcBindIP to be %s, but got %s", mainnetConfig.RpcBindIp, *config.RpcBindIp)
Expand Down Expand Up @@ -191,7 +191,7 @@ func TestReturnsCorrectBaseConfig(t *testing.T) {
RpcPort: &rpcPort,
DefaultCheckpoint: defaultCheckpoint,
Chain: ChainConfig{},
Forks: Forks{},
Forks: consensus_core.Forks{},
MaxCheckpointAge: uint64(maxCheckpointAge),
DataDir: &dataDirectory,
LoadExternalFallback: loadExternalFallback,
Expand All @@ -203,8 +203,8 @@ func TestReturnsCorrectBaseConfig(t *testing.T) {
if !reflect.DeepEqual(baseConfig.Chain, config.Chain) {
t.Errorf("Expected Chain to be %v, got %v", config.Chain, baseConfig.Chain)
}
if !reflect.DeepEqual(baseConfig.Forks, consensus_core.Forks) {
t.Errorf("Expected Forks to be %v, got %v", consensus_core.Forks, baseConfig.Forks)
if !reflect.DeepEqual(baseConfig.Forks, config.Forks) {
t.Errorf("Expected Forks to be %v, got %v", config.Forks, baseConfig.Forks)
}
if baseConfig.MaxCheckpointAge != config.MaxCheckpointAge {
t.Errorf("Expected Max Checkpoint age to be %v, got %v", config.MaxCheckpointAge, baseConfig.MaxCheckpointAge)
Expand All @@ -215,7 +215,7 @@ func TestReturnsCorrectDefaultValues(t *testing.T) {
ConsensusRpc: consensusRpc,
DefaultCheckpoint: defaultCheckpoint,
Chain: ChainConfig{},
Forks: Forks{},
Forks: consensus_core.Forks{},
MaxCheckpointAge: uint64(maxCheckpointAge),
DataDir: &dataDirectory,
LoadExternalFallback: loadExternalFallback,
Expand Down

0 comments on commit 1ce4468

Please sign in to comment.