mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user