Skip to content

Commit

Permalink
chore: solve lint warns
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Jul 26, 2022
1 parent 34b4a3d commit 42b68bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/grandpa/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ func TestNotifyNeighbor(t *testing.T) {
finalizeBlockAfter time.Duration
expectWithin time.Duration
}{
"should_send_neighbor_message": {
"should_send_neighbour_message": {
expectWithin: 2 * time.Second,
notifyInterval: interval,
},
"should_reset_timer_and_then_send_neighbor_message": {
"should_reset_timer_and_then_send_neighbour_message": {
finalizeBlock: true,
finalizeBlockAfter: 1 * time.Second,
notifyInterval: interval,
Expand Down Expand Up @@ -140,10 +140,10 @@ func TestNotifyNeighbor(t *testing.T) {

ensureGossipMessageCalledRightTime := func(_ network.NotificationsMessage) {
defer wg.Done()
const roundOverSec = 1 * time.Second
const roundAround = 1 * time.Second

calledWithin := time.Now().Sub(*timecheck)
calledWithin = calledWithin.Round(roundOverSec) // avoid decimal points
calledWithin = calledWithin.Round(roundAround) // avoid decimal points
assert.Equal(t, tt.expectWithin, calledWithin)
}

Expand Down

0 comments on commit 42b68bc

Please sign in to comment.