mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
node: fix test if directory already exists
This commit is contained in:
parent
35cebc1687
commit
98104b27a4
1 changed files with 3 additions and 1 deletions
|
|
@ -418,7 +418,9 @@ func TestRegisterHandler_Successful(t *testing.T) {
|
|||
// Tests that the given handler will not be successfully mounted since no HTTP server
|
||||
// is enabled for RPC
|
||||
func TestRegisterHandler_Unsuccessful(t *testing.T) {
|
||||
node, err := New(&DefaultConfig)
|
||||
cfg := DefaultConfig
|
||||
cfg.DataDir = t.TempDir()
|
||||
node, err := New(&cfg)
|
||||
if err != nil {
|
||||
t.Fatalf("could not create new node: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue