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) } }