mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 16:37:39 +00:00
588dea83b7
* test coverage and updates to config twiddlers * LoadChainConfigFile error if SetActive conflicts * lint * wip working around test issues * more fixes, mass test updates * lint * linting * thanks deepsource! * fix undeclared vars * fixing more undefined * fix a bug, make a bug, repeat * gaz * use stock mainnet in case fork schedule matters * remove unused KnownConfigs * post-merge cleanup * eliminating OverrideBeaconConfig outside tests * more cleanup of OverrideBeaconConfig outside tests * config for interop w/ genesis gen support * improve var name * API on package instead of exported value * cleanup remainders of "registry" naming * Nishant feedback * add ropstein to configset * lint * lint #2 * ✂️ * revert accidental commented line * check if active is nil (replace called on empty) * Nishant feedback * replace OverrideBeaconConfig call * update interop instructions w/ new flag * don't let interop replace config set via cli flags Co-authored-by: kasey <kasey@users.noreply.github.com>
25 lines
706 B
Go
25 lines
706 B
Go
package params_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/config/params"
|
|
"github.com/prysmaticlabs/prysm/testing/require"
|
|
)
|
|
|
|
func TestPraterConfigMatchesUpstreamYaml(t *testing.T) {
|
|
presetFPs := presetsFilePath(t, "mainnet")
|
|
mn, err := params.ByName(params.MainnetName)
|
|
require.NoError(t, err)
|
|
cfg := mn.Copy()
|
|
for _, fp := range presetFPs {
|
|
cfg, err = params.UnmarshalConfigFile(fp, cfg)
|
|
require.NoError(t, err)
|
|
}
|
|
configFP := testnetConfigFilePath(t, "prater")
|
|
pcfg, err := params.UnmarshalConfigFile(configFP, nil)
|
|
require.NoError(t, err)
|
|
fields := fieldsFromYamls(t, append(presetFPs, configFP))
|
|
assertYamlFieldsMatch(t, "prater", fields, pcfg, params.PraterConfig())
|
|
}
|