Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Jul 16, 2024
1 parent b33e287 commit 2c98f85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operator/duties/voluntary_exit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,25 @@ func TestVoluntaryExitHandler_HandleDuties(t *testing.T) {
const blockNumber = uint64(1)

normalExit := ExitDescriptor{
OwnValidator: true,
PubKey: phase0.BLSPubKey{1, 2, 3},
ValidatorIndex: phase0.ValidatorIndex(1),
BlockNumber: blockNumber,
}
sameBlockExit := ExitDescriptor{
OwnValidator: true,
PubKey: phase0.BLSPubKey{4, 5, 6},
ValidatorIndex: phase0.ValidatorIndex(2),
BlockNumber: normalExit.BlockNumber,
}
newBlockExit := ExitDescriptor{
OwnValidator: true,
PubKey: phase0.BLSPubKey{1, 2, 3},
ValidatorIndex: phase0.ValidatorIndex(1),
BlockNumber: normalExit.BlockNumber + 1,
}
pastBlockExit := ExitDescriptor{
OwnValidator: true,
PubKey: phase0.BLSPubKey{1, 2, 3},
ValidatorIndex: phase0.ValidatorIndex(1),
BlockNumber: normalExit.BlockNumber + 4,
Expand Down

0 comments on commit 2c98f85

Please sign in to comment.