Skip to content

Commit

Permalink
Close db
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Aug 16, 2024
1 parent 0e81408 commit e632aa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/test_analysis/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func (t *tester) findFailedTests(ctx context.Context) ([]failedTest, error) {
if err != nil {
return nil, err
}
defer db.Close()

rows, err := db.QueryContext(ctx, "SELECT DISTINCT Package, Test FROM test_results where Action='fail' and Test != ''")
if err != nil {
Expand Down Expand Up @@ -180,6 +181,7 @@ func (t *tester) summarize() (string, error) {
if err != nil {
return "", err
}
defer db.Close()

rows, err := db.QueryContext(ctx, `SELECT
tr_output.Package,
Expand Down

0 comments on commit e632aa2

Please sign in to comment.