Skip to content

Commit c249868

Browse files
committed
Fix lint issue with graft/coreth/utils/snow.go
1 parent 3256398 commit c249868

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

graft/coreth/plugin/evm/atomic/vm/tx_gossip_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/atomic"
1919
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/config"
2020
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/vmtest"
21-
"github.com/ava-labs/avalanchego/graft/coreth/utils"
2221
"github.com/ava-labs/avalanchego/graft/coreth/utils/utilstest"
2322
"github.com/ava-labs/avalanchego/ids"
2423
"github.com/ava-labs/avalanchego/network/p2p"
@@ -45,7 +44,7 @@ func TestAtomicTxGossip(t *testing.T) {
4544

4645
snowCtx := snowtest.Context(t, snowtest.CChainID)
4746
snowCtx.AVAXAssetID = ids.GenerateTestID()
48-
validatorState := utils.NewTestValidatorState()
47+
validatorState := utilstest.NewTestValidatorState()
4948
snowCtx.ValidatorState = validatorState
5049
memory := avalancheatomic.NewMemory(memdb.New())
5150
snowCtx.SharedMemory = memory.NewSharedMemory(snowCtx.ChainID)
@@ -195,7 +194,7 @@ func TestAtomicTxPushGossipOutbound(t *testing.T) {
195194

196195
snowCtx := snowtest.Context(t, snowtest.CChainID)
197196
snowCtx.AVAXAssetID = ids.GenerateTestID()
198-
validatorState := utils.NewTestValidatorState()
197+
validatorState := utilstest.NewTestValidatorState()
199198
snowCtx.ValidatorState = validatorState
200199
memory := avalancheatomic.NewMemory(memdb.New())
201200
snowCtx.SharedMemory = memory.NewSharedMemory(snowCtx.ChainID)
@@ -265,7 +264,7 @@ func TestAtomicTxPushGossipInboundValid(t *testing.T) {
265264

266265
snowCtx := snowtest.Context(t, snowtest.CChainID)
267266
snowCtx.AVAXAssetID = ids.GenerateTestID()
268-
validatorState := utils.NewTestValidatorState()
267+
validatorState := utilstest.NewTestValidatorState()
269268
snowCtx.ValidatorState = validatorState
270269
memory := avalancheatomic.NewMemory(memdb.New())
271270
snowCtx.SharedMemory = memory.NewSharedMemory(snowCtx.ChainID)

graft/coreth/plugin/evm/tx_gossip_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/config"
2121
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/upgrade/ap0"
2222
"github.com/ava-labs/avalanchego/graft/coreth/plugin/evm/vmtest"
23-
"github.com/ava-labs/avalanchego/graft/coreth/utils"
23+
"github.com/ava-labs/avalanchego/graft/coreth/utils/utilstest"
2424
"github.com/ava-labs/avalanchego/ids"
2525
"github.com/ava-labs/avalanchego/network/p2p"
2626
"github.com/ava-labs/avalanchego/network/p2p/gossip"
@@ -40,7 +40,7 @@ func TestEthTxGossip(t *testing.T) {
4040
require := require.New(t)
4141
ctx := t.Context()
4242
snowCtx := snowtest.Context(t, snowtest.CChainID)
43-
validatorState := utils.NewTestValidatorState()
43+
validatorState := utilstest.NewTestValidatorState()
4444
snowCtx.ValidatorState = validatorState
4545

4646
pk, err := secp256k1.NewPrivateKey()

graft/coreth/utils/snow.go renamed to graft/coreth/utils/utilstest/snow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
package utils
4+
package utilstest
55

66
import (
77
"context"

0 commit comments

Comments
 (0)