light: correctly handle contexts (backport -> v0.34.x) (#6685)

This commit is contained in:
Callum Waters
2021-07-09 14:30:33 +02:00
committed by GitHub
parent 8b84c7c168
commit 2c2f511f24
7 changed files with 87 additions and 62 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func StartTendermint(app abci.Application, opts ...func(*Options)) *nm.Node {
// cleans up test/config files.
func StopTendermint(node *nm.Node) {
if err := node.Stop(); err != nil {
node.Logger.Error("Error when tryint to stop node", "err", err)
node.Logger.Error("Error when trying to stop node", "err", err)
}
node.Wait()
os.RemoveAll(node.Config().RootDir)