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:
3 files changed
+5
-1
No files matched your search
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user