Skip all the tests in p2p when running `go test`.
test:
@echo "====> Running go test"
- @go test $(PACKAGES)
+ @go test -tags "network" $(PACKAGES)
benchmark:
go test -bench $(PACKAGES)
+// +build !network
+
package p2p
import (
+// +build !network
+
package p2p_test
import (
+// +build !network
+
package p2p
import (
+// +build !network
+
package p2p
import (
+// +build !network
+
package p2p
import (
+// +build !network
+
package p2p
import (
"testing"
"time"
+ log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- log "github.com/sirupsen/logrus"
crypto "github.com/tendermint/go-crypto"
cfg "github.com/bytom/config"
+// +build !network
+
package p2p
import (
+// +build !network
+
package p2p
import (
+// +build !network
+
package p2p
import (