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 2017-08-10 21:59:06 -07:00
parent 512a5c899b
commit c02710c8c9
No known key found for this signature in database
GPG Key ID: 3D0A94DB79743DF5
3 changed files with 5 additions and 1 deletions

@ -1,3 +1,5 @@
// +build !rpctest
package main
import (

@ -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

@ -1,3 +1,5 @@
// +build !rpctest
package main
import (