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
350a0490
Unverified
Commit
350a0490
authored
Jul 29, 2020
by
gary rong
Committed by
GitHub
Jul 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
les: fix unittest (#21382)
parent
37564ced
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fetcher_test.go
les/fetcher_test.go
+4
-4
No files found.
les/fetcher_test.go
View file @
350a0490
...
@@ -66,7 +66,7 @@ func TestSequentialAnnouncementsLes2(t *testing.T) { testSequentialAnnouncements
...
@@ -66,7 +66,7 @@ func TestSequentialAnnouncementsLes2(t *testing.T) { testSequentialAnnouncements
func
TestSequentialAnnouncementsLes3
(
t
*
testing
.
T
)
{
testSequentialAnnouncements
(
t
,
3
)
}
func
TestSequentialAnnouncementsLes3
(
t
*
testing
.
T
)
{
testSequentialAnnouncements
(
t
,
3
)
}
func
testSequentialAnnouncements
(
t
*
testing
.
T
,
protocol
int
)
{
func
testSequentialAnnouncements
(
t
*
testing
.
T
,
protocol
int
)
{
s
,
c
,
teardown
:=
newClientServerEnv
(
t
,
4
,
protocol
,
nil
,
nil
,
0
,
false
,
false
)
s
,
c
,
teardown
:=
newClientServerEnv
(
t
,
4
,
protocol
,
nil
,
nil
,
0
,
false
,
false
,
true
)
defer
teardown
()
defer
teardown
()
// Create connected peer pair.
// Create connected peer pair.
...
@@ -101,7 +101,7 @@ func TestGappedAnnouncementsLes2(t *testing.T) { testGappedAnnouncements(t, 2) }
...
@@ -101,7 +101,7 @@ func TestGappedAnnouncementsLes2(t *testing.T) { testGappedAnnouncements(t, 2) }
func
TestGappedAnnouncementsLes3
(
t
*
testing
.
T
)
{
testGappedAnnouncements
(
t
,
3
)
}
func
TestGappedAnnouncementsLes3
(
t
*
testing
.
T
)
{
testGappedAnnouncements
(
t
,
3
)
}
func
testGappedAnnouncements
(
t
*
testing
.
T
,
protocol
int
)
{
func
testGappedAnnouncements
(
t
*
testing
.
T
,
protocol
int
)
{
s
,
c
,
teardown
:=
newClientServerEnv
(
t
,
4
,
protocol
,
nil
,
nil
,
0
,
false
,
false
)
s
,
c
,
teardown
:=
newClientServerEnv
(
t
,
4
,
protocol
,
nil
,
nil
,
0
,
false
,
false
,
true
)
defer
teardown
()
defer
teardown
()
// Create connected peer pair.
// Create connected peer pair.
...
@@ -183,7 +183,7 @@ func testTrustedAnnouncement(t *testing.T, protocol int) {
...
@@ -183,7 +183,7 @@ func testTrustedAnnouncement(t *testing.T, protocol int) {
ids
=
append
(
ids
,
n
.
String
())
ids
=
append
(
ids
,
n
.
String
())
}
}
}
}
_
,
c
,
teardown
:=
newClientServerEnv
(
t
,
0
,
protocol
,
nil
,
ids
,
60
,
false
,
false
)
_
,
c
,
teardown
:=
newClientServerEnv
(
t
,
0
,
protocol
,
nil
,
ids
,
60
,
false
,
false
,
true
)
defer
teardown
()
defer
teardown
()
defer
func
()
{
defer
func
()
{
for
i
:=
0
;
i
<
len
(
teardowns
);
i
++
{
for
i
:=
0
;
i
<
len
(
teardowns
);
i
++
{
...
@@ -234,7 +234,7 @@ func testTrustedAnnouncement(t *testing.T, protocol int) {
...
@@ -234,7 +234,7 @@ func testTrustedAnnouncement(t *testing.T, protocol int) {
}
}
func
TestInvalidAnnounces
(
t
*
testing
.
T
)
{
func
TestInvalidAnnounces
(
t
*
testing
.
T
)
{
s
,
c
,
teardown
:=
newClientServerEnv
(
t
,
4
,
lpv3
,
nil
,
nil
,
0
,
false
,
false
)
s
,
c
,
teardown
:=
newClientServerEnv
(
t
,
4
,
lpv3
,
nil
,
nil
,
0
,
false
,
false
,
true
)
defer
teardown
()
defer
teardown
()
// Create connected peer pair.
// Create connected peer pair.
...
...
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