mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
22 lines
514 B
Go
22 lines
514 B
Go
|
package clparams
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func testConfig(t *testing.T, n NetworkType) {
|
||
|
genesis, network, beacon := GetConfigsByNetwork(MainnetNetwork)
|
||
|
|
||
|
require.Equal(t, *genesis, GenesisConfigs[MainnetNetwork])
|
||
|
require.Equal(t, *network, NetworkConfigs[MainnetNetwork])
|
||
|
require.Equal(t, *beacon, BeaconConfigs[MainnetNetwork])
|
||
|
}
|
||
|
|
||
|
func TestGetConfigsByNetwork(t *testing.T) {
|
||
|
testConfig(t, MainnetNetwork)
|
||
|
testConfig(t, SepoliaNetwork)
|
||
|
testConfig(t, GoerliNetwork)
|
||
|
}
|