prysm-pulse/testing/spectest/utils/config_test.go
2021-09-14 16:02:58 +00:00

17 lines
455 B
Go

package utils
import (
"testing"
types "github.com/prysmaticlabs/eth2-types"
"github.com/prysmaticlabs/prysm/shared/params"
"github.com/prysmaticlabs/prysm/shared/testutil/require"
)
func TestConfig(t *testing.T) {
require.NoError(t, SetConfig(t, "minimal"))
require.Equal(t, types.Slot(8), params.BeaconConfig().SlotsPerEpoch)
require.NoError(t, SetConfig(t, "mainnet"))
require.Equal(t, types.Slot(32), params.BeaconConfig().SlotsPerEpoch)
}