prysm-pulse/config/params/testnet_prater_config_test.go
Preston Van Loon cbb4361c64
Update spectests to v1.1.0 (#9680)
* Update spectests to v1.1.0

* ignore placeholder fields, fix spec config check
2021-09-28 00:50:06 +00:00

17 lines
469 B
Go

package params_test
import (
"testing"
"github.com/prysmaticlabs/prysm/config/params"
)
func TestPraterConfigMatchesUpstreamYaml(t *testing.T) {
presetFP := presetsFilePath(t, "mainnet")
params.LoadChainConfigFile(presetFP)
configFP := testnetConfigFilePath(t, "prater")
params.LoadChainConfigFile(configFP)
fields := fieldsFromYamls(t, []string{configFP, presetFP})
assertYamlFieldsMatch(t, "prater", fields, params.BeaconConfig(), params.PraterConfig())
}