good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
1f0f6f02
Commit
1f0f6f02
authored
Jun 25, 2018
by
Louis Holbrook
Committed by
Balint Gabor
Jun 25, 2018
Browse files
Options
Downloads
Patches
Plain Diff
swarm/pss: Hide big network tests under longrunning flag (#17074)
parent
0a22ae55
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
swarm/pss/pss_test.go
+14
-0
14 additions, 0 deletions
swarm/pss/pss_test.go
with
14 additions
and
0 deletions
swarm/pss/pss_test.go
+
14
−
0
View file @
1f0f6f02
...
@@ -56,6 +56,7 @@ var (
...
@@ -56,6 +56,7 @@ var (
initOnce
=
sync
.
Once
{}
initOnce
=
sync
.
Once
{}
debugdebugflag
=
flag
.
Bool
(
"vv"
,
false
,
"veryverbose"
)
debugdebugflag
=
flag
.
Bool
(
"vv"
,
false
,
"veryverbose"
)
debugflag
=
flag
.
Bool
(
"v"
,
false
,
"verbose"
)
debugflag
=
flag
.
Bool
(
"v"
,
false
,
"verbose"
)
longrunning
=
flag
.
Bool
(
"longrunning"
,
false
,
"do run long-running tests"
)
w
*
whisper
.
Whisper
w
*
whisper
.
Whisper
wapi
*
whisper
.
PublicWhisperAPI
wapi
*
whisper
.
PublicWhisperAPI
psslogmain
log
.
Logger
psslogmain
log
.
Logger
...
@@ -949,12 +950,19 @@ func worker(id int, jobs <-chan Job, rpcs map[discover.NodeID]*rpc.Client, pubke
...
@@ -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:
// params in run name:
// 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()
//enableMetrics()
if
!*
longrunning
{
t
.
Skip
(
"run with --longrunning flag to run extensive network tests"
)
}
t
.
Run
(
"3/2000/4/sim"
,
testNetwork
)
t
.
Run
(
"3/2000/4/sim"
,
testNetwork
)
t
.
Run
(
"4/2000/4/sim"
,
testNetwork
)
t
.
Run
(
"4/2000/4/sim"
,
testNetwork
)
t
.
Run
(
"8/2000/4/sim"
,
testNetwork
)
t
.
Run
(
"8/2000/4/sim"
,
testNetwork
)
...
@@ -964,6 +972,9 @@ func TestNetwork2000(t *testing.T) {
...
@@ -964,6 +972,9 @@ func TestNetwork2000(t *testing.T) {
func
TestNetwork5000
(
t
*
testing
.
T
)
{
func
TestNetwork5000
(
t
*
testing
.
T
)
{
//enableMetrics()
//enableMetrics()
if
!*
longrunning
{
t
.
Skip
(
"run with --longrunning flag to run extensive network tests"
)
}
t
.
Run
(
"3/5000/4/sim"
,
testNetwork
)
t
.
Run
(
"3/5000/4/sim"
,
testNetwork
)
t
.
Run
(
"4/5000/4/sim"
,
testNetwork
)
t
.
Run
(
"4/5000/4/sim"
,
testNetwork
)
t
.
Run
(
"8/5000/4/sim"
,
testNetwork
)
t
.
Run
(
"8/5000/4/sim"
,
testNetwork
)
...
@@ -973,6 +984,9 @@ func TestNetwork5000(t *testing.T) {
...
@@ -973,6 +984,9 @@ func TestNetwork5000(t *testing.T) {
func
TestNetwork10000
(
t
*
testing
.
T
)
{
func
TestNetwork10000
(
t
*
testing
.
T
)
{
//enableMetrics()
//enableMetrics()
if
!*
longrunning
{
t
.
Skip
(
"run with --longrunning flag to run extensive network tests"
)
}
t
.
Run
(
"3/10000/4/sim"
,
testNetwork
)
t
.
Run
(
"3/10000/4/sim"
,
testNetwork
)
t
.
Run
(
"4/10000/4/sim"
,
testNetwork
)
t
.
Run
(
"4/10000/4/sim"
,
testNetwork
)
t
.
Run
(
"8/10000/4/sim"
,
testNetwork
)
t
.
Run
(
"8/10000/4/sim"
,
testNetwork
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment