Skip to content

Commit

Permalink
bugfix: logs are not updated after resources are destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Nov 2, 2023
1 parent a1de671 commit cc53ddb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ func (c TestCommand) Execute() int {
} else {
logrus.Infof("test resource has been deleted")
}
logrus.Infof("parsing log.txt...")
newLogs, err := trace.RequestTracesFromFile(path.Join(wd, "log.txt"))
if err != nil {
logrus.Errorf("parsing log.txt: %+v", err)
}
logs = newLogs
} else {
logrus.Warnf("the created resources will not be destroyed because either there is an error or destroy-after-test flag is not set")
}
Expand Down

0 comments on commit cc53ddb

Please sign in to comment.