mirror of
https://github.com/libp2p/go-libp2p.git
synced 2026-04-23 00:27:05 +08:00
move circuitv2 tests to the relay package
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
package test
|
||||
package relay_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
+1
-8
@@ -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 +0,0 @@
|
||||
package test
|
||||
Reference in New Issue
Block a user