From 7b402cd63bebf95e733de65f042ac88f0beda252 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 23 Aug 2018 22:48:55 -0700 Subject: [PATCH] peer/peer_test: switch TrickleTimeout -> TrickleInterval --- peer/peer_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/peer/peer_test.go b/peer/peer_test.go index e87d2f95..daf87ab8 100644 --- a/peer/peer_test.go +++ b/peer/peer_test.go @@ -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(