mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
67a6e34188
commit
46765b8486
2 changed files with 2 additions and 5 deletions
|
|
@ -65,10 +65,9 @@ func TestDatadirCreation(t *testing.T) {
|
|||
dir = filepath.Join(file.Name(), "invalid/path")
|
||||
node, err = New(&Config{DataDir: dir})
|
||||
if err == nil {
|
||||
// Ensure resources are cleaned up even on unexpected success.
|
||||
_ = node.Close()
|
||||
t.Fatalf("protocol stack created with an invalid datadir")
|
||||
if err := node.Close(); err != nil {
|
||||
t.Fatalf("failed to close node: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,8 +47,6 @@ type InstrumentedService struct {
|
|||
|
||||
startHook func()
|
||||
stopHook func()
|
||||
|
||||
protocols []p2p.Protocol
|
||||
}
|
||||
|
||||
func (s *InstrumentedService) Start() error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue