fix: resolve noctx lint issues

This commit is contained in:
user committed 2026-02-20 03:19:19 -08:00
1 parent 4fe5227cbf
commit c6c5aaf48e
2 files changed
+4 -3

No files matched your search

+1 -1
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)