move circuitv2 tests to the relay package

This commit is contained in:
Marten Seemann
2021-10-08 15:45:15 +02:00
parent eee7761fdc
commit 2828a61f9c
6 changed files with 5 additions and 10 deletions
@@ -1,4 +1,4 @@
package test
package relay_test
import (
"bytes"
@@ -1,4 +1,4 @@
package test
package relay_test
import (
"bytes"
@@ -18,7 +18,6 @@ import (
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
logging "github.com/ipfs/go-log/v2"
bhost "github.com/libp2p/go-libp2p-blankhost"
"github.com/libp2p/go-libp2p-core/metrics"
"github.com/libp2p/go-libp2p-peerstore/pstoremem"
@@ -29,12 +28,6 @@ import (
ma "github.com/multiformats/go-multiaddr"
)
func init() {
// TODO temporary for debugging purposes; to be removed for merge.
logging.SetLogLevel("relay", "DEBUG")
logging.SetLogLevel("p2p-circuit", "DEBUG")
}
func getNetHosts(t *testing.T, ctx context.Context, n int) (hosts []host.Host, upgraders []*tptu.Upgrader) {
for i := 0; i < n; i++ {
privk, pubk, err := crypto.GenerateKeyPair(crypto.Ed25519, 0)
-1
View File
@@ -1 +0,0 @@
package test