Commit 4e87b444 authored by Matthew Halpern's avatar Matthew Halpern Committed by Viktor Trón

swarm/pss: remove unused function (#19100)

parent 90b6cdaa
...@@ -38,8 +38,6 @@ import ( ...@@ -38,8 +38,6 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/metrics/influxdb"
"github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/enode" "github.com/ethereum/go-ethereum/p2p/enode"
...@@ -1369,8 +1367,6 @@ func TestNetwork(t *testing.T) { ...@@ -1369,8 +1367,6 @@ func TestNetwork(t *testing.T) {
// nodes/msgs/addrbytes/adaptertype // nodes/msgs/addrbytes/adaptertype
// if adaptertype is exec uses execadapter, simadapter otherwise // if adaptertype is exec uses execadapter, simadapter otherwise
func TestNetwork2000(t *testing.T) { func TestNetwork2000(t *testing.T) {
//enableMetrics()
if !*longrunning { if !*longrunning {
t.Skip("run with --longrunning flag to run extensive network tests") t.Skip("run with --longrunning flag to run extensive network tests")
} }
...@@ -1381,8 +1377,6 @@ func TestNetwork2000(t *testing.T) { ...@@ -1381,8 +1377,6 @@ func TestNetwork2000(t *testing.T) {
} }
func TestNetwork5000(t *testing.T) { func TestNetwork5000(t *testing.T) {
//enableMetrics()
if !*longrunning { if !*longrunning {
t.Skip("run with --longrunning flag to run extensive network tests") t.Skip("run with --longrunning flag to run extensive network tests")
} }
...@@ -1393,8 +1387,6 @@ func TestNetwork5000(t *testing.T) { ...@@ -1393,8 +1387,6 @@ func TestNetwork5000(t *testing.T) {
} }
func TestNetwork10000(t *testing.T) { func TestNetwork10000(t *testing.T) {
//enableMetrics()
if !*longrunning { if !*longrunning {
t.Skip("run with --longrunning flag to run extensive network tests") t.Skip("run with --longrunning flag to run extensive network tests")
} }
...@@ -2098,11 +2090,3 @@ func (apitest *APITest) SetSymKeys(pubkeyid string, recvsymkey []byte, sendsymke ...@@ -2098,11 +2090,3 @@ func (apitest *APITest) SetSymKeys(pubkeyid string, recvsymkey []byte, sendsymke
func (apitest *APITest) Clean() (int, error) { func (apitest *APITest) Clean() (int, error) {
return apitest.Pss.cleanKeys(), nil return apitest.Pss.cleanKeys(), nil
} }
// enableMetrics is starting InfluxDB reporter so that we collect stats when running tests locally
func enableMetrics() {
metrics.Enabled = true
go influxdb.InfluxDBWithTags(metrics.DefaultRegistry, 1*time.Second, "http://localhost:8086", "metrics", "admin", "admin", "swarm.", map[string]string{
"host": "test",
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment