erigon-pulse/cmd/lightclient/clparams/config_test.go

22 lines
514 B
Go
Raw Normal View History

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)
}