Skip to content

Commit 42908d0

Browse files
authored
fix(dot): fix TestNewNode (#2070)
* set babelead=true * fix lint
1 parent 7f9c042 commit 42908d0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

devnet/cmd/update-dd-agent-confd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

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

dot/node_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ func TestStartNode(t *testing.T) {
153153

154154
cfg.Init.Genesis = genFile.Name()
155155
cfg.Core.GrandpaAuthority = false
156+
cfg.Core.BABELead = true
156157

157158
err := InitNode(cfg)
158159
require.NoError(t, err)

lib/grandpa/grandpa_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,11 @@ func addBlocksToState(t *testing.T, blockState *state.BlockState, depth int) {
13881388
}
13891389
}
13901390

1391-
func addBlocksAndReturnTheLastOne(t *testing.T, blockState *state.BlockState, depth int, lastBlockArrivalTime time.Time) *types.Block {
1391+
func addBlocksAndReturnTheLastOne(
1392+
t *testing.T, blockState *state.BlockState,
1393+
depth int,
1394+
lastBlockArrivalTime time.Time,
1395+
) *types.Block {
13921396
t.Helper()
13931397
addBlocksToState(t, blockState, depth)
13941398

0 commit comments

Comments
 (0)