From 131e021dd7840190bce67a3743f562812d7bb905 Mon Sep 17 00:00:00 2001 From: sanaz Date: Wed, 20 Mar 2024 09:11:41 -0700 Subject: [PATCH] stop txsim prior to clean up --- test/e2e/testnet.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e/testnet.go b/test/e2e/testnet.go index bbfdb35e85..79cbe44ffe 100644 --- a/test/e2e/testnet.go +++ b/test/e2e/testnet.go @@ -240,8 +240,13 @@ func (t *Testnet) Cleanup() { log.Err(err).Msg(fmt.Sprintf("node %s failed to cleanup", node.Name)) } } + // stop and cleanup txsim if t.txSimNode.Instance != nil { - err := t.txSimNode.Instance.Destroy() + err := t.txSimNode.Instance.Stop() + if err != nil { + log.Err(err).Msg(fmt.Sprintf("txsim %s failed to stop", t.txSimNode.Name) + } + err = t.txSimNode.Instance.Destroy() if err != nil { log.Err(err).Msg(fmt.Sprintf("txsim %s failed to cleanup", t.txSimNode.Name)) }