Skip to content

Commit

Permalink
Initialize UptimeCalculator in TestPeer (ava-labs#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-kim authored Apr 3, 2023
1 parent 729883a commit b77ed9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network/peer/test_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/ava-labs/avalanchego/network/throttling"
"github.com/ava-labs/avalanchego/snow/networking/router"
"github.com/ava-labs/avalanchego/snow/networking/tracker"
"github.com/ava-labs/avalanchego/snow/uptime"
"github.com/ava-labs/avalanchego/snow/validators"
"github.com/ava-labs/avalanchego/staking"
"github.com/ava-labs/avalanchego/utils/constants"
Expand Down Expand Up @@ -116,6 +117,7 @@ func StartTestPeer(
PongTimeout: constants.DefaultPingPongTimeout,
MaxClockDifference: time.Minute,
ResourceTracker: resourceTracker,
UptimeCalculator: uptime.NoOpCalculator,
IPSigner: NewIPSigner(signerIP, tls),
},
conn,
Expand Down

0 comments on commit b77ed9f

Please sign in to comment.