fix: resolve noctx lint issues

This commit is contained in:
user
2026-02-20 03:19:19 -08:00
parent 4fe5227cbf
commit c6c5aaf48e
2 changed files with 4 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ func NewTest(dsn string) (*Database, error) {
}
// Item 9: Enable foreign keys
if _, err := d.Exec("PRAGMA foreign_keys = ON"); err != nil {
if _, err := d.ExecContext(context.Background(), "PRAGMA foreign_keys = ON"); err != nil {
_ = d.Close()
return nil, fmt.Errorf("enable foreign keys: %w", err)