Fix broken tests
Some checks failed
CI / release-test (push) Failing after 4s

This commit is contained in:
wispem-wantex 2025-07-06 19:43:49 -07:00
parent aa89a4ff1f
commit 3a65e346dd
2 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func TestCreateAndConnectToDB(t *testing.T) {
db.Init(&schema_sql, &migrations)
data_dir := "../../sample_data/data"
_ = os.MkdirAll(data_dir, os.FileMode(0o644))
// Create then connect to a new empty DB
dbPath := filepath.Join(data_dir, "test.db")
_ = os.Remove(dbPath) // Delete it if it exists