Skip to content

Commit

Permalink
node: remove noop path.Join (ethereum#25475)
Browse files Browse the repository at this point in the history
Signed-off-by: Delweng <[email protected]>
  • Loading branch information
jsvisa authored and cp-wjhan committed Oct 11, 2023
1 parent 46eddb2 commit 4e94d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand All @@ -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)
}
Expand Down

0 comments on commit 4e94d67

Please sign in to comment.