aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/pss
diff options
context:
space:
mode:
authorlash <nolash@users.noreply.github.com>2018-06-25 22:11:47 +0800
committerBalint Gabor <balint.g@gmail.com>2018-06-25 22:11:47 +0800
commit1f0f6f0272c4c2f4b7b459835eff254f1f86784a (patch)
tree1cdd36883ec5842db8502ca48b53112272fb39f5 /swarm/pss
parent0a22ae55729298dcd9979184d0b3c28f48b272bf (diff)
downloaddexon-1f0f6f0272c4c2f4b7b459835eff254f1f86784a.tar.gz
dexon-1f0f6f0272c4c2f4b7b459835eff254f1f86784a.tar.zst
dexon-1f0f6f0272c4c2f4b7b459835eff254f1f86784a.zip
swarm/pss: Hide big network tests under longrunning flag (#17074)
Diffstat (limited to 'swarm/pss')
-rw-r--r--swarm/pss/pss_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/swarm/pss/pss_test.go b/swarm/pss/pss_test.go
index e28af275b..a59a5e427 100644
--- a/swarm/pss/pss_test.go
+++ b/swarm/pss/pss_test.go
@@ -56,6 +56,7 @@ var (
initOnce = sync.Once{}
debugdebugflag = flag.Bool("vv", false, "veryverbose")
debugflag = flag.Bool("v", false, "verbose")
+ longrunning = flag.Bool("longrunning", false, "do run long-running tests")
w *whisper.Whisper
wapi *whisper.PublicWhisperAPI
psslogmain log.Logger
@@ -949,12 +950,19 @@ func worker(id int, jobs <-chan Job, rpcs map[discover.NodeID]*rpc.Client, pubke
}
}
+func TestNetwork(t *testing.T) {
+ t.Run("16/1000/4/sim", testNetwork)
+}
+
// params in run name:
// nodes/msgs/addrbytes/adaptertype
// if adaptertype is exec uses execadapter, simadapter otherwise
func TestNetwork2000(t *testing.T) {
//enableMetrics()
+ if !*longrunning {
+ t.Skip("run with --longrunning flag to run extensive network tests")
+ }
t.Run("3/2000/4/sim", testNetwork)
t.Run("4/2000/4/sim", testNetwork)
t.Run("8/2000/4/sim", testNetwork)
@@ -964,6 +972,9 @@ func TestNetwork2000(t *testing.T) {
func TestNetwork5000(t *testing.T) {
//enableMetrics()
+ if !*longrunning {
+ t.Skip("run with --longrunning flag to run extensive network tests")
+ }
t.Run("3/5000/4/sim", testNetwork)
t.Run("4/5000/4/sim", testNetwork)
t.Run("8/5000/4/sim", testNetwork)
@@ -973,6 +984,9 @@ func TestNetwork5000(t *testing.T) {
func TestNetwork10000(t *testing.T) {
//enableMetrics()
+ if !*longrunning {
+ t.Skip("run with --longrunning flag to run extensive network tests")
+ }
t.Run("3/10000/4/sim", testNetwork)
t.Run("4/10000/4/sim", testNetwork)
t.Run("8/10000/4/sim", testNetwork)