Configurable testutil's BeaconState (#8407)

* Configurable testutil's BeaconState

* fix shared and fuzz tests

* return state copy

* use mainnet config values for default state

* handle error in block fuzz

* goimports

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
Radosław Kapka
2021-02-08 21:00:09 +01:00
committed by GitHub
parent 0a180dc662
commit 86a9d4c6a4
43 changed files with 396 additions and 219 deletions

View File

@@ -268,7 +268,8 @@ func TestBlocksFetcher_RoundRobin(t *testing.T) {
err := beaconDB.SaveBlock(context.Background(), testutil.NewBeaconBlock())
require.NoError(t, err)
st := testutil.NewBeaconState()
st, err := testutil.NewBeaconState()
require.NoError(t, err)
mc := &mock.ChainService{
State: st,