Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
cc1ed4e6
Commit
cc1ed4e6
authored
Oct 22, 2021
by
libangzhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
ba502228
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
monitor.go
plugin/p2p/gossip/monitor.go
+4
-4
net_test.go
plugin/p2p/gossip/net_test.go
+1
-1
p2p_test.go
plugin/p2p/gossip/p2p_test.go
+1
-1
No files found.
plugin/p2p/gossip/monitor.go
View file @
cc1ed4e6
...
...
@@ -612,14 +612,14 @@ func (n *Node) monitorCerts() {
log
.
Error
(
"monitorCerts"
,
"rpc call err"
,
err
)
return
}
delayT
:=
time
.
Now
()
.
Add
(
time
.
Minute
*
2
)
//
delayT:=time.Now().Add(time.Minute*2)
for
{
select
{
case
<-
ticker
.
C
:
//check serialNum
if
!
time
.
Now
()
.
After
(
delayT
){
continue
}
//
if !time.Now().After(delayT){
//
continue
//
}
var
resp
[]
string
var
s
Serial
s
.
Serials
=
getSerialNums
()
...
...
plugin/p2p/gossip/net_test.go
View file @
cc1ed4e6
...
...
@@ -28,7 +28,7 @@ func TestNetAddress(t *testing.T) {
}
func
TestAddrRouteble
(
t
*
testing
.
T
)
{
resp
:=
P2pComm
.
AddrRouteble
([]
string
{
"114.55.101.159:13802"
},
utils
.
CalcChannelVersion
(
119
,
VERSION
),
nil
)
resp
:=
P2pComm
.
AddrRouteble
([]
string
{
"114.55.101.159:13802"
},
utils
.
CalcChannelVersion
(
119
,
VERSION
),
nil
,
nil
)
t
.
Log
(
resp
)
}
...
...
plugin/p2p/gossip/p2p_test.go
View file @
cc1ed4e6
...
...
@@ -372,7 +372,7 @@ func testGrpcStreamConns(t *testing.T, p2p *P2p) {
func
testP2pComm
(
t
*
testing
.
T
,
p2p
*
P2p
)
{
addrs
:=
P2pComm
.
AddrRouteble
([]
string
{
"localhost:53802"
},
utils
.
CalcChannelVersion
(
testChannel
,
VERSION
),
nil
)
addrs
:=
P2pComm
.
AddrRouteble
([]
string
{
"localhost:53802"
},
utils
.
CalcChannelVersion
(
testChannel
,
VERSION
),
nil
,
nil
)
t
.
Log
(
addrs
)
i32
:=
P2pComm
.
BytesToInt32
([]
byte
{
0xff
})
t
.
Log
(
i32
)
...
...
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