2022-03-14 20:58:13 +00:00
|
|
|
//go:build minimal
|
2021-12-13 09:16:23 +00:00
|
|
|
|
|
|
|
package field_params_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-08-16 12:20:13 +00:00
|
|
|
fieldparams "github.com/prysmaticlabs/prysm/v3/config/fieldparams"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/config/params"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/testing/require"
|
2021-12-13 09:16:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestFieldParametersValues(t *testing.T) {
|
2022-05-20 07:16:53 +00:00
|
|
|
params.SetupTestConfigCleanup(t)
|
|
|
|
min := params.MinimalSpecConfig().Copy()
|
|
|
|
params.OverrideBeaconConfig(min)
|
|
|
|
require.Equal(t, "minimal", fieldparams.Preset)
|
2022-01-16 18:44:42 +00:00
|
|
|
testFieldParametersMatchConfig(t)
|
2021-12-13 09:16:23 +00:00
|
|
|
}
|