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.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-08-10 21:59:23 -07:00
1 parent 512a5c899b
commit c02710c8c9
3 files changed
+5 -1

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
// +build !rpctest
package main
import (
+1 -1
View File
@@ -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
+2
View File
@@ -1,3 +1,5 @@
// +build !rpctest
package main
import (