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:
Jim Posen authored and Olaoluwa Osuntokun committed 2017-12-14 20:06:23 -08:00
1 parent 77d5f21b54
commit 19ed1fb8db
3 files changed
+25 -14

No files matched your search

+2 -2
View File
@@ -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
}