Skip to content

Commit

Permalink
Fix race on 'err'
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Jun 13, 2024
1 parent 28dd676 commit 0a220fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activation/handler_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ func Test_MarryingMalicious(t *testing.T) {
atxHandler.mtortoise.EXPECT().OnMalfeasance(sig.NodeID())
atxHandler.mtortoise.EXPECT().OnMalfeasance(otherSig.NodeID())

_, err = atxHandler.processATX(context.Background(), "", atx, codec.MustEncode(atx), time.Now())
_, err := atxHandler.processATX(context.Background(), "", atx, codec.MustEncode(atx), time.Now())
require.NoError(t, err)

equiv, err := identities.EquivocationSet(atxHandler.cdb, sig.NodeID())
Expand Down

0 comments on commit 0a220fe

Please sign in to comment.