diff --git a/wait/sql.go b/wait/sql.go index 698ccd7625..e10c79a4bb 100644 --- a/wait/sql.go +++ b/wait/sql.go @@ -50,6 +50,7 @@ func (w *waitForSql) WaitUntilReady(ctx context.Context, target StrategyTarget) if err != nil { return fmt.Errorf("sql.Open: %v", err) } + defer db.Close() for { select { case <-ctx.Done():