mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
23ff14c34b
* move general/phase0/bls tests * phase0/operations tests * phase0/sanity/blocks * fix import * phase0/sanity/slots * phase0/sanity/slots minimal * phase0/epoch_processing tests * phase0/rewards tests * simplify * more simplification * phase0/shuffling tests * phase0/ssz_static tests * spectest/utils * fix build * readme * update test sizes * update readme
17 lines
455 B
Go
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)
|
|
}
|