mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
2b0f74904e
* save work * current progress * fix it more * save progress * fixes so far * add signature test * fix up changes so far * change to latest * update lighthouse version * fix build * fix again * do one * clean up * fix build * fix it * fix test * change tag * remove e2e * Update config/params/testnet_e2e_config.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * update * Update sha Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
34 lines
943 B
Go
34 lines
943 B
Go
package params_test
|
|
|
|
import (
|
|
"path"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/bazelbuild/rules_go/go/tools/bazel"
|
|
"github.com/prysmaticlabs/prysm/config/params"
|
|
"github.com/prysmaticlabs/prysm/io/file"
|
|
"github.com/prysmaticlabs/prysm/testing/assert"
|
|
"github.com/prysmaticlabs/prysm/testing/require"
|
|
)
|
|
|
|
func testnetConfigFilePath(t *testing.T, network string) string {
|
|
filepath, err := bazel.Runfile("external/eth2_networks")
|
|
require.NoError(t, err)
|
|
configFilePath := path.Join(filepath, "shared", network, "config.yaml")
|
|
return configFilePath
|
|
}
|
|
|
|
func TestE2EConfigParity(t *testing.T) {
|
|
params.SetupTestConfigCleanup(t)
|
|
testDir := bazel.TestTmpDir()
|
|
yamlDir := filepath.Join(testDir, "config.yaml")
|
|
|
|
testCfg := params.E2EMainnetTestConfig()
|
|
yamlObj := params.E2EMainnetConfigYaml()
|
|
assert.NoError(t, file.WriteFile(yamlDir, yamlObj))
|
|
|
|
params.LoadChainConfigFile(yamlDir)
|
|
assert.DeepEqual(t, params.BeaconConfig(), testCfg)
|
|
}
|