mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 14:17:17 +00:00
84916672c6
* replace eth2 types * replace protos * regen proto * replace * gaz * deps * amend * regen proto * mod * gaz * gaz * ensure build * ssz * add dep * no more eth2 types * no more eth2 * remg * all builds * buidl * tidy * clean * fmt * val serv * gaz Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
17 lines
469 B
Go
17 lines
469 B
Go
package utils
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/config/params"
|
|
types "github.com/prysmaticlabs/prysm/consensus-types/primitives"
|
|
"github.com/prysmaticlabs/prysm/testing/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)
|
|
}
|