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
733d76a8
Unverified
Commit
733d76a8
authored
Aug 04, 2022
by
Delweng
Committed by
GitHub
Aug 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node: remove noop path.Join (#25475)
Signed-off-by:
Delweng
<
delweng@gmail.com
>
parent
f809cf6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config_test.go
node/config_test.go
+2
-2
No files found.
node/config_test.go
View file @
733d76a8
...
...
@@ -115,7 +115,7 @@ func TestNodeKeyPersistency(t *testing.T) {
}
config
:=
&
Config
{
Name
:
"unit-test"
,
DataDir
:
dir
,
P2P
:
p2p
.
Config
{
PrivateKey
:
key
}}
config
.
NodeKey
()
if
_
,
err
:=
os
.
Stat
(
filepath
.
Join
(
keyfile
)
);
err
==
nil
{
if
_
,
err
:=
os
.
Stat
(
keyfile
);
err
==
nil
{
t
.
Fatalf
(
"one-shot node key persisted to data directory"
)
}
...
...
@@ -136,7 +136,7 @@ func TestNodeKeyPersistency(t *testing.T) {
// Configure a new node and ensure the previously persisted key is loaded
config
=
&
Config
{
Name
:
"unit-test"
,
DataDir
:
dir
}
config
.
NodeKey
()
blob2
,
err
:=
os
.
ReadFile
(
filepath
.
Join
(
keyfile
)
)
blob2
,
err
:=
os
.
ReadFile
(
keyfile
)
if
err
!=
nil
{
t
.
Fatalf
(
"failed to read previously persisted node key: %v"
,
err
)
}
...
...
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