Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
1f0f6f02
Commit
1f0f6f02
authored
6 years ago
by
lash
Committed by
Balint Gabor
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/pss: Hide big network tests under longrunning flag (#17074)
parent
0a22ae55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
pss_test.go
swarm/pss/pss_test.go
+14
-0
No files found.
swarm/pss/pss_test.go
View file @
1f0f6f02
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment