From 42b68bc7ce0311d4f3c8fdc7bb3f8af99deb0202 Mon Sep 17 00:00:00 2001 From: EclesioMeloJunior Date: Tue, 26 Jul 2022 15:19:27 -0400 Subject: [PATCH] chore: solve lint warns --- lib/grandpa/network_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/grandpa/network_test.go b/lib/grandpa/network_test.go index 5cb76eadff..94469b2ef6 100644 --- a/lib/grandpa/network_test.go +++ b/lib/grandpa/network_test.go @@ -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, @@ -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) }