From c02710c8c9fce53417f22dfb66b4b3acc37f9be8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 10 Aug 2017 21:59:06 -0700 Subject: [PATCH] test: add +build !rpctest to tests files in main package This commit adds the +build !rpctest build flag to the test files in the main package other than the RPC tests. With this, if the protest build flag is set, then ONLY those tests will be run. --- fundingmanager_test.go | 2 ++ pilot.go | 2 +- utxonursery_test.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fundingmanager_test.go b/fundingmanager_test.go index a528b2c25..80ff399bb 100644 --- a/fundingmanager_test.go +++ b/fundingmanager_test.go @@ -1,3 +1,5 @@ +// +build !rpctest + package main import ( diff --git a/pilot.go b/pilot.go index 26a824e84..2172b518d 100644 --- a/pilot.go +++ b/pilot.go @@ -54,7 +54,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey, tcpAddr, ok := addr.(*net.TCPAddr) if !ok { return fmt.Errorf("TCP address required instead "+ - "have %T", addrs[0]) + "have %T", addr) } if tcpAddr.Port == 0 { tcpAddr.Port = defaultPeerPort diff --git a/utxonursery_test.go b/utxonursery_test.go index 9bc5d211a..613eadbcb 100644 --- a/utxonursery_test.go +++ b/utxonursery_test.go @@ -1,3 +1,5 @@ +// +build !rpctest + package main import (