Skip to content

Commit

Permalink
resolve broken slasher test'
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Apr 1, 2020
1 parent d2d931f commit ae1b4aa
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions slasher/db/kv/proposer_slashings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,24 @@ func TestStore_SaveProposerSlashing(t *testing.T) {
}{
{
ss: types.Active,
ps: &ethpb.ProposerSlashing{Header_1: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 1}}},
ps: &ethpb.ProposerSlashing{
Header_1: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 1}},
Header_2: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 1}},
},
},
{
ss: types.Included,
ps: &ethpb.ProposerSlashing{Header_1: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 2}}},
ps: &ethpb.ProposerSlashing{
Header_1: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 2}},
Header_2: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 2}},
},
},
{
ss: types.Reverted,
ps: &ethpb.ProposerSlashing{Header_1: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 3}}},
ps: &ethpb.ProposerSlashing{
Header_1: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 3}},
Header_2: &ethpb.SignedBeaconBlockHeader{Header: &ethpb.BeaconBlockHeader{ProposerIndex: 3}},
},
},
}

Expand Down

0 comments on commit ae1b4aa

Please sign in to comment.