2019-10-04 22:46:49 +00:00
|
|
|
package params_test
|
2018-10-06 15:30:15 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2019-10-04 22:46:49 +00:00
|
|
|
|
|
|
|
"github.com/prysmaticlabs/prysm/shared/params"
|
2018-10-06 15:30:15 +00:00
|
|
|
)
|
|
|
|
|
2018-11-18 16:39:35 +00:00
|
|
|
func TestOverrideBeaconConfig(t *testing.T) {
|
2019-10-04 22:46:49 +00:00
|
|
|
cfg := params.BeaconConfig()
|
2018-11-18 16:39:35 +00:00
|
|
|
cfg.ShardCount = 5
|
2019-10-04 22:46:49 +00:00
|
|
|
params.OverrideBeaconConfig(cfg)
|
|
|
|
if c := params.BeaconConfig(); c.ShardCount != 5 {
|
2018-11-18 16:39:35 +00:00
|
|
|
t.Errorf("Shardcount in BeaconConfig incorrect. Wanted %d, got %d", 5, c.ShardCount)
|
|
|
|
}
|
|
|
|
}
|