mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
66dcf2b80d
* Fixed bytesutil * Fix featureflag * Fix hashutil * Fix interop * Fix iputils * Fix mathutils * Fix messagehandler * Fix pagination * Fix params * Fix sliceutil * Fix merkletrie
17 lines
367 B
Go
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)
|
|
}
|
|
}
|