test(node): more linters #24783 (#1996)

This commit is contained in:
Daniel Liu 2026-02-05 18:00:40 +08:00 committed by GitHub
parent 67a6e34188
commit 46765b8486
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -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)
}
}
}

View file

@ -47,8 +47,6 @@ type InstrumentedService struct {
startHook func()
stopHook func()
protocols []p2p.Protocol
}
func (s *InstrumentedService) Start() error {