fix: resolve noctx lint issues
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user