Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Jan 9, 2025
1 parent 71a6760 commit 87fa629
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions activation/handler_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@ func Test_Marriages(t *testing.T) {
require.NoError(t, err)
require.ElementsMatch(t, []types.NodeID{sig.NodeID(), otherSig.NodeID(), otherSig2.NodeID()}, equiv)
})
t.Run("marring existing malicious equivocation set: marks all malicious and publishes proof", func(t *testing.T) {
t.Run("marring existing malicious equivocation set: marks all malicious and republishes proof", func(t *testing.T) {
t.Parallel()
atxHandler := newV2TestHandler(t, golden)

Expand Down Expand Up @@ -2019,12 +2019,6 @@ func Test_Marriages(t *testing.T) {
atx2.Sign(sig)
atxHandler.expectAtxV2(atx2)

verifier := wire.NewMockMalfeasanceValidator(atxHandler.ctrl)
verifier.EXPECT().Signature(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).
DoAndReturn(func(d signing.Domain, nodeID types.NodeID, m []byte, sig types.EdSignature) bool {
return atxHandler.edVerifier.Verify(d, nodeID, m, sig)
}).AnyTimes()

atxHandler.mMalPublish.EXPECT().Republish(gomock.Any(), sig.NodeID())
err = atxHandler.processATX(context.Background(), "", atx2, time.Now())
require.NoError(t, err)
Expand All @@ -2042,7 +2036,7 @@ func Test_Marriages(t *testing.T) {
require.True(t, m, "expected %s to be malicious", sig)
}
})
t.Run("malicious marring existing equivocation set: marks all malicious and publishes proof", func(t *testing.T) {
t.Run("malicious marring existing equivocation set: marks all malicious and republishes proof", func(t *testing.T) {
t.Parallel()
atxHandler := newV2TestHandler(t, golden)

Expand Down Expand Up @@ -2072,12 +2066,6 @@ func Test_Marriages(t *testing.T) {
atx2.Sign(sig)
atxHandler.expectAtxV2(atx2)

verifier := wire.NewMockMalfeasanceValidator(atxHandler.ctrl)
verifier.EXPECT().Signature(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).
DoAndReturn(func(d signing.Domain, nodeID types.NodeID, m []byte, sig types.EdSignature) bool {
return atxHandler.edVerifier.Verify(d, nodeID, m, sig)
}).AnyTimes()

atxHandler.mMalPublish.EXPECT().Republish(gomock.Any(), sig.NodeID())
err = atxHandler.processATX(context.Background(), "", atx2, time.Now())
require.NoError(t, err)
Expand Down

0 comments on commit 87fa629

Please sign in to comment.