Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Jan 9, 2023
1 parent 2dd9295 commit 363d58f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions local/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/message"
"github.com/ava-labs/avalanchego/network/peer"
"github.com/ava-labs/avalanchego/proto/pb/p2p"
"github.com/ava-labs/avalanchego/staking"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/utils/ips"
Expand Down Expand Up @@ -72,7 +73,7 @@ func verifyProtocol(
}
now := uint64(time.Now().Unix())
unsignedIP := peer.UnsignedIP{
IP: myIP,
IPPort: myIP,
Timestamp: now,
}
signer := myTLSCert.PrivateKey.(crypto.Signer)
Expand Down Expand Up @@ -231,7 +232,7 @@ func TestAttachPeer(t *testing.T) {
requestID := uint32(42)
chainID := constants.PlatformChainID
// create the Chits message
msg, err := mc.Chits(chainID, requestID, containerIDs)
msg, err := mc.Chits(chainID, requestID, []ids.ID{}, containerIDs, p2p.EngineType_ENGINE_TYPE_AVALANCHE)
require.NoError(err)
// send chits to [node]
ok := p.Send(context.Background(), msg)
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/ava-labs/avalanchego/api/admin"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/message"
"github.com/ava-labs/avalanchego/proto/pb/p2p"
avago_constants "github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/utils/logging"
ginkgo "github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -431,7 +432,7 @@ var _ = ginkgo.Describe("[Start/Remove/Restart/Add/Stop]", func() {
}
requestID := uint32(42)
chainID := avago_constants.PlatformChainID
msg, err := mc.Chits(chainID, requestID, containerIDs)
msg, err := mc.Chits(chainID, requestID, []ids.ID{}, containerIDs, p2p.EngineType_ENGINE_TYPE_AVALANCHE)
gomega.Ω(err).Should(gomega.BeNil())

ctx, cancel = context.WithTimeout(context.Background(), 2*time.Minute)
Expand Down

0 comments on commit 363d58f

Please sign in to comment.