mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
15 lines
292 B
Go
15 lines
292 B
Go
package params
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestOverrideBeaconConfig(t *testing.T) {
|
|
cfg := BeaconConfig()
|
|
cfg.ShardCount = 5
|
|
OverrideBeaconConfig(cfg)
|
|
if c := BeaconConfig(); c.ShardCount != 5 {
|
|
t.Errorf("Shardcount in BeaconConfig incorrect. Wanted %d, got %d", 5, c.ShardCount)
|
|
}
|
|
}
|