Skip to content

Commit

Permalink
stop txsim prior to clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Mar 20, 2024
1 parent baf6be9 commit 131e021
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/e2e/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 247 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / govulncheck

missing ',' before newline in argument list

Check failure on line 247 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / test / test

syntax error: unexpected newline in argument list; possibly missing comma or )

Check failure on line 247 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / test / test-short

syntax error: unexpected newline in argument list; possibly missing comma or )

Check failure on line 247 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / test / test-race

syntax error: unexpected newline in argument list; possibly missing comma or )
}

Check failure on line 248 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / govulncheck

expected operand, found '}'
err = t.txSimNode.Instance.Destroy()
if err != nil {

Check failure on line 250 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / govulncheck

missing ',' in argument list
log.Err(err).Msg(fmt.Sprintf("txsim %s failed to cleanup", t.txSimNode.Name))

Check failure on line 251 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / govulncheck

missing ',' before newline in composite literal
}

Check failure on line 252 in test/e2e/testnet.go

View workflow job for this annotation

GitHub Actions / govulncheck

missing ',' before newline in argument list
Expand Down

0 comments on commit 131e021

Please sign in to comment.