updated sqlite engine to address compilation errors
All checks were successful
Build and Release Core / Test and Build (push) Successful in 2m54s
All checks were successful
Build and Release Core / Test and Build (push) Successful in 2m54s
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"database/sql"
|
||||
"testing"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
// GetSLAPolicy simulates the core engine function that fetches SLA rules
|
||||
@@ -16,7 +16,7 @@ func GetSLAPolicy(db *sql.DB, domain string, severity string) (daysToRemediate i
|
||||
|
||||
// setupTestDB spins up an isolated, in-memory database for testing
|
||||
func setupTestDB(t *testing.T) *sql.DB {
|
||||
db, err := sql.Open("sqlite3", ":memory:")
|
||||
db, err := sql.Open("sqlite", ":memory:")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to open test database: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user