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:
parent
512a5c899b
commit
c02710c8c9
@ -1,3 +1,5 @@
|
|||||||
|
// +build !rpctest
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
2
pilot.go
2
pilot.go
@ -54,7 +54,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
|
|||||||
tcpAddr, ok := addr.(*net.TCPAddr)
|
tcpAddr, ok := addr.(*net.TCPAddr)
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("TCP address required instead "+
|
return fmt.Errorf("TCP address required instead "+
|
||||||
"have %T", addrs[0])
|
"have %T", addr)
|
||||||
}
|
}
|
||||||
if tcpAddr.Port == 0 {
|
if tcpAddr.Port == 0 {
|
||||||
tcpAddr.Port = defaultPeerPort
|
tcpAddr.Port = defaultPeerPort
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// +build !rpctest
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user