Skip to content

Commit

Permalink
fixed bot comment in an unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Dec 18, 2019
1 parent c284681 commit 4628de3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions p2p/antiflood/p2pAntiflood_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,10 @@ func TestP2pAntiflood_CanNotIncrementMessageOriginatorShouldError(t *testing.T)
}
afm, _ := antiflood.NewP2pAntiflood(&mock.FloodPreventerStub{
IncrementAddingToSumCalled: func(identifier string, size uint64) bool {
if identifier == fromConnectedPeer.Pretty() {
return true
}

return false
return identifier == fromConnectedPeer.Pretty()
},
IncrementCalled: func(identifier string, size uint64) bool {
if identifier == message.PeerField.Pretty() {
return false
}

return true
return identifier != message.PeerField.Pretty()
},
})

Expand Down

0 comments on commit 4628de3

Please sign in to comment.