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 00:50:06 +00:00
|
|
|
presetFP := presetsFilePath(t, "mainnet")
|
|
|
|
params.LoadChainConfigFile(presetFP)
|
2021-08-25 17:18:29 +00:00
|
|
|
configFP := testnetConfigFilePath(t, "prater")
|
2021-09-21 15:02:48 +00:00
|
|
|
params.LoadChainConfigFile(configFP)
|
2021-09-28 00:50:06 +00:00
|
|
|
fields := fieldsFromYamls(t, []string{configFP, presetFP})
|
2021-09-21 15:02:48 +00:00
|
|
|
assertYamlFieldsMatch(t, "prater", fields, params.BeaconConfig(), params.PraterConfig())
|
2021-08-25 17:18:29 +00:00
|
|
|
}
|