prysm-pulse/config/fieldparams/mainnet_test.go
Håvard Anda Estensen b55ddb5a34
Use go:build lines and remove obsolete +build lines (#10704)
* Use go:build lines and remove obsolete +build lines

* Run gazelle

* Update crypto/bls/blst/stub.go

* Update crypto/bls/blst/stub.go

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-06-14 11:47:27 +00:00

24 lines
559 B
Go

//go:build !minimal
package field_params_test
import (
"testing"
fieldparams "github.com/prysmaticlabs/prysm/config/fieldparams"
"github.com/prysmaticlabs/prysm/config/params"
"github.com/prysmaticlabs/prysm/testing/require"
)
func TestFieldParametersValues(t *testing.T) {
min, err := params.ByName(params.MainnetName)
require.NoError(t, err)
undo, err := params.SetActiveWithUndo(min)
require.NoError(t, err)
defer func() {
require.NoError(t, undo())
}()
require.Equal(t, "mainnet", fieldparams.Preset)
testFieldParametersMatchConfig(t)
}