prysm-pulse/shared/params/config_test.go

17 lines
367 B
Go
Raw Normal View History

package params_test
import (
"testing"
"github.com/prysmaticlabs/prysm/shared/params"
)
func TestOverrideBeaconConfig(t *testing.T) {
cfg := params.BeaconConfig()
cfg.ShardCount = 5
params.OverrideBeaconConfig(cfg)
if c := params.BeaconConfig(); c.ShardCount != 5 {
t.Errorf("Shardcount in BeaconConfig incorrect. Wanted %d, got %d", 5, c.ShardCount)
}
}