prysm-pulse/testing/spectest/utils/config_test.go
terence 5a66807989
Update to V5 (#13622)
* First take at updating everything to v5

* Patch gRPC gateway to use prysm v5

Fix patch

* Update go ssz

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 05:46:47 +00:00

17 lines
482 B
Go

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