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(