peer/peer_test: switch TrickleTimeout -> TrickleInterval
This commit is contained in:
parent
602bced5f5
commit
7b402cd63b
1 changed files with 5 additions and 5 deletions
|
@ -236,7 +236,7 @@ func TestPeerConnection(t *testing.T) {
|
|||
ChainParams: &chaincfg.MainNetParams,
|
||||
ProtocolVersion: wire.RejectVersion, // Configure with older version
|
||||
Services: 0,
|
||||
TrickleTimeout: time.Second * 10,
|
||||
TrickleInterval: time.Second * 10,
|
||||
}
|
||||
peer2Cfg := &peer.Config{
|
||||
Listeners: peer1Cfg.Listeners,
|
||||
|
@ -245,7 +245,7 @@ func TestPeerConnection(t *testing.T) {
|
|||
UserAgentComments: []string{"comment"},
|
||||
ChainParams: &chaincfg.MainNetParams,
|
||||
Services: wire.SFNodeNetwork | wire.SFNodeWitness,
|
||||
TrickleTimeout: time.Second * 10,
|
||||
TrickleInterval: time.Second * 10,
|
||||
}
|
||||
|
||||
wantStats1 := peerStats{
|
||||
|
@ -449,7 +449,7 @@ func TestPeerListeners(t *testing.T) {
|
|||
UserAgentComments: []string{"comment"},
|
||||
ChainParams: &chaincfg.MainNetParams,
|
||||
Services: wire.SFNodeBloom,
|
||||
TrickleTimeout: time.Second * 10,
|
||||
TrickleInterval: time.Second * 10,
|
||||
}
|
||||
inConn, outConn := pipe(
|
||||
&conn{raddr: "10.0.0.1:8333"},
|
||||
|
@ -620,7 +620,7 @@ func TestOutboundPeer(t *testing.T) {
|
|||
UserAgentComments: []string{"comment"},
|
||||
ChainParams: &chaincfg.MainNetParams,
|
||||
Services: 0,
|
||||
TrickleTimeout: time.Second * 10,
|
||||
TrickleInterval: time.Second * 10,
|
||||
}
|
||||
|
||||
r, w := io.Pipe()
|
||||
|
@ -761,7 +761,7 @@ func TestUnsupportedVersionPeer(t *testing.T) {
|
|||
UserAgentComments: []string{"comment"},
|
||||
ChainParams: &chaincfg.MainNetParams,
|
||||
Services: 0,
|
||||
TrickleTimeout: time.Second * 10,
|
||||
TrickleInterval: time.Second * 10,
|
||||
}
|
||||
|
||||
localNA := wire.NewNetAddressIPPort(
|
||||
|
|
Loading…
Add table
Reference in a new issue