mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 13:18:57 +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)
|
|
}
|
|
}
|