mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-29 06:37:17 +00:00
22 lines
409 B
Go
22 lines
409 B
Go
package backend
|
|
|
|
import "testing"
|
|
|
|
func TestRunChainTest(t *testing.T) {
|
|
sb, err := NewSimulatedBackend()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
testCase := &ChainTestCase{
|
|
Config: &ChainTestConfig{
|
|
ShardCount: 3,
|
|
CycleLength: 10,
|
|
MinCommitteeSize: 3,
|
|
ValidatorCount: 100,
|
|
},
|
|
}
|
|
if err := sb.RunChainTest(testCase); err != nil {
|
|
t.Errorf("Could not run chaintest: %v", err)
|
|
}
|
|
}
|