prysm-pulse/shared/params/config_test.go
terence tsao 66dcf2b80d Moved /shared/ test code in different package (#3714)
* Fixed bytesutil

* Fix featureflag

* Fix hashutil

* Fix interop

* Fix iputils

* Fix mathutils

* Fix messagehandler

* Fix pagination

* Fix params

* Fix sliceutil

* Fix merkletrie
2019-10-04 15:46:49 -07:00

17 lines
367 B
Go

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