Skip to content

Commit

Permalink
fix lint and license
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjbrettj committed Oct 15, 2024
1 parent 4623d05 commit 370e30c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/grandpa/neighbor_tracker.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2024 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package grandpa

import (
Expand Down
11 changes: 7 additions & 4 deletions lib/grandpa/neighbor_tracker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2024 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package grandpa

import (
Expand Down Expand Up @@ -29,7 +32,7 @@ func TestNeighborTracker_UpdatePeer(t *testing.T) {
expectedErr error
}{
{
name: "simple update",
name: "simple_update",
tracker: &NeighborTracker{
peerview: map[peer.ID]neighborState{},
},
Expand All @@ -46,7 +49,7 @@ func TestNeighborTracker_UpdatePeer(t *testing.T) {
},
},
{
name: "nil peerview",
name: "nil_peerview",
tracker: &NeighborTracker{},
args: args{
p: "testPeer",
Expand All @@ -57,7 +60,7 @@ func TestNeighborTracker_UpdatePeer(t *testing.T) {
expectedErr: fmt.Errorf("neighbour tracker has nil peer tracker"),
},
{
name: "updating existing peer",
name: "updating_existing_peer",
tracker: &NeighborTracker{
peerview: map[peer.ID]neighborState{},
},
Expand Down Expand Up @@ -96,7 +99,7 @@ func TestNeighborTracker_UpdateState(t *testing.T) {
args args
}{
{
name: "happy path",
name: "happy_path",
tracker: &NeighborTracker{},
args: args{
setID: 1,
Expand Down

0 comments on commit 370e30c

Please sign in to comment.