2021-09-21 15:02:48 +00:00
|
|
|
package params_test
|
2021-08-25 17:18:29 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2021-09-21 15:02:48 +00:00
|
|
|
|
2021-09-21 19:59:25 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/config/params"
|
2021-08-25 17:18:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestPraterConfigMatchesUpstreamYaml(t *testing.T) {
|
2021-09-28 20:02:12 +00:00
|
|
|
presetFPs := presetsFilePath(t, "mainnet")
|
|
|
|
for _, fp := range presetFPs {
|
2022-03-21 19:43:41 +00:00
|
|
|
params.LoadChainConfigFile(fp, nil)
|
2021-09-28 20:02:12 +00:00
|
|
|
}
|
2021-08-25 17:18:29 +00:00
|
|
|
configFP := testnetConfigFilePath(t, "prater")
|
2022-03-21 19:43:41 +00:00
|
|
|
params.LoadChainConfigFile(configFP, nil)
|
2021-09-28 20:02:12 +00:00
|
|
|
fields := fieldsFromYamls(t, append(presetFPs, configFP))
|
2021-09-21 15:02:48 +00:00
|
|
|
assertYamlFieldsMatch(t, "prater", fields, params.BeaconConfig(), params.PraterConfig())
|
2021-08-25 17:18:29 +00:00
|
|
|
}
|