lntest: Add ShutdownNode method to harness.
This is preferable to calling Shutdown on the node directly so that the harness manages the entire lifecycle of an lnd process.
This commit is contained in:
1 parent
77d5f21b54
commit
19ed1fb8db
3 files changed
+25
-14
No files matched your search
+2
-2
@@ -415,9 +415,9 @@ func (hn *HarnessNode) restart(errChan chan error, callback func() error) error
|
||||
return hn.start(errChan)
|
||||
}
|
||||
|
||||
// Shutdown stops the active lnd process and clean up any temporary directories
|
||||
// shutdown stops the active lnd process and cleans up any temporary directories
|
||||
// created along the way.
|
||||
func (hn *HarnessNode) Shutdown() error {
|
||||
func (hn *HarnessNode) shutdown() error {
|
||||
if err := hn.stop(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user