lntest: add RPC middleware itests
This commit is contained in:
5 files changed
+637
-9
No files matched your search
+3
-3
@@ -756,7 +756,7 @@ func (n *NetworkHarness) DisconnectNodes(a, b *HarnessNode) error {
|
||||
func (n *NetworkHarness) RestartNode(node *HarnessNode, callback func() error,
|
||||
chanBackups ...*lnrpc.ChanBackupSnapshot) error {
|
||||
|
||||
err := n.RestartNodeNoUnlock(node, callback)
|
||||
err := n.RestartNodeNoUnlock(node, callback, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -794,7 +794,7 @@ func (n *NetworkHarness) RestartNode(node *HarnessNode, callback func() error,
|
||||
// the callback parameter is non-nil, then the function will be executed after
|
||||
// the node shuts down, but *before* the process has been started up again.
|
||||
func (n *NetworkHarness) RestartNodeNoUnlock(node *HarnessNode,
|
||||
callback func() error) error {
|
||||
callback func() error, wait bool) error {
|
||||
|
||||
if err := node.stop(); err != nil {
|
||||
return err
|
||||
@@ -806,7 +806,7 @@ func (n *NetworkHarness) RestartNodeNoUnlock(node *HarnessNode,
|
||||
}
|
||||
}
|
||||
|
||||
return node.start(n.lndBinary, n.lndErrorChan, true)
|
||||
return node.start(n.lndBinary, n.lndErrorChan, wait)
|
||||
}
|
||||
|
||||
// SuspendNode stops the given node and returns a callback that can be used to
|
||||
|
||||
Reference in new issue
Block a user