updated sqlite engine to address compilation errors
All checks were successful
Build and Release Core / Test and Build (push) Successful in 2m54s

This commit is contained in:
t
2026-04-02 15:00:31 -04:00
parent da4699fe08
commit 5f53ffec4f
7 changed files with 47 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ import (
"sync"
"testing"
_ "github.com/mattn/go-sqlite3"
_ "modernc.org/sqlite"
)
// runChaosEngine fires 100 concurrent workers at the provided database connection
@@ -73,8 +73,8 @@ func TestSQLiteConcurrency_Tuned_Succeeds(t *testing.T) {
tempDir := t.TempDir()
dbPath := filepath.Join(tempDir, "tuned.db")
dsn := fmt.Sprintf("%s?_journal_mode=WAL&_synchronous=NORMAL&_busy_timeout=5000", dbPath)
db, err := sql.Open("sqlite3", dsn)
dsn := fmt.Sprintf("%s?_pragma=journal_mode(WAL)&_pragma=synchronous(NORMAL)&_pragma=busy_timeout(5000)", dbPath)
db, err := sql.Open("sqlite", dsn)
if err != nil {
t.Fatalf("Failed to open tuned DB: %v", err)
}