Skip to content

Commit

Permalink
fix(dot): fix TestNewNode (ChainSafe#2070)
Browse files Browse the repository at this point in the history
* set babelead=true

* fix lint
  • Loading branch information
timwu20 committed Dec 6, 2021
1 parent 09e07cf commit 87f41ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devnet/cmd/update-dd-agent-confd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

type options struct {
Namespace string `short:"n" long:"namespace" description:"namespace that is prepended to all metrics" required:"true"`
Namespace string `short:"n" long:"namespace" description:"namespace that is prepended to all metrics" required:"true"` //nolint:lll
Tags []string `short:"t" long:"tags" description:"tags that are added to all metrics"`
}

Expand Down
1 change: 1 addition & 0 deletions dot/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func TestStartNode(t *testing.T) {

cfg.Init.Genesis = genFile.Name()
cfg.Core.GrandpaAuthority = false
cfg.Core.BABELead = true

err := InitNode(cfg)
require.NoError(t, err)
Expand Down
6 changes: 5 additions & 1 deletion lib/grandpa/grandpa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,11 @@ func addBlocksToState(t *testing.T, blockState *state.BlockState, depth int) {
}
}

func addBlocksAndReturnTheLastOne(t *testing.T, blockState *state.BlockState, depth int, lastBlockArrivalTime time.Time) *types.Block {
func addBlocksAndReturnTheLastOne(
t *testing.T, blockState *state.BlockState,
depth int,
lastBlockArrivalTime time.Time,
) *types.Block {
t.Helper()
addBlocksToState(t, blockState, depth)

Expand Down

0 comments on commit 87f41ba

Please sign in to comment.