Skip to content

Commit 533e5a7

Browse files
committed
Fix test stream events by properly set effective balance
1 parent c1cab84 commit 533e5a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

beacon-chain/rpc/eth/events/events_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
statefeed "github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed/state"
2020
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state"
2121
fieldparams "github.com/prysmaticlabs/prysm/v5/config/fieldparams"
22+
"github.com/prysmaticlabs/prysm/v5/config/params"
2223
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
2324
"github.com/prysmaticlabs/prysm/v5/consensus-types/interfaces"
2425
payloadattribute "github.com/prysmaticlabs/prysm/v5/consensus-types/payload-attribute"
@@ -460,7 +461,7 @@ func TestStreamEvents_OperationsEvents(t *testing.T) {
460461
defer testSync.cleanup()
461462

462463
st := tc.getState()
463-
v := &eth.Validator{ExitEpoch: math.MaxUint64}
464+
v := &eth.Validator{ExitEpoch: math.MaxUint64, EffectiveBalance: params.BeaconConfig().MinActivationBalance}
464465
require.NoError(t, st.SetValidators([]*eth.Validator{v}))
465466
currentSlot := primitives.Slot(0)
466467
// to avoid slot processing

0 commit comments

Comments
 (0)