Skip to content

Commit c03fc70

Browse files
jsvisajagdeep sidhu
authored andcommitted
node: remove noop path.Join (ethereum#25475)
Signed-off-by: Delweng <delweng@gmail.com>
1 parent 4549cd2 commit c03fc70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func TestNodeKeyPersistency(t *testing.T) {
115115
}
116116
config := &Config{Name: "unit-test", DataDir: dir, P2P: p2p.Config{PrivateKey: key}}
117117
config.NodeKey()
118-
if _, err := os.Stat(filepath.Join(keyfile)); err == nil {
118+
if _, err := os.Stat(keyfile); err == nil {
119119
t.Fatalf("one-shot node key persisted to data directory")
120120
}
121121

@@ -136,7 +136,7 @@ func TestNodeKeyPersistency(t *testing.T) {
136136
// Configure a new node and ensure the previously persisted key is loaded
137137
config = &Config{Name: "unit-test", DataDir: dir}
138138
config.NodeKey()
139-
blob2, err := os.ReadFile(filepath.Join(keyfile))
139+
blob2, err := os.ReadFile(keyfile)
140140
if err != nil {
141141
t.Fatalf("failed to read previously persisted node key: %v", err)
142142
}

0 commit comments

Comments
 (0)