This commit is contained in:
parent
aa89a4ff1f
commit
3a65e346dd
@ -23,6 +23,7 @@ func TestCreateAndConnectToDB(t *testing.T) {
|
|||||||
db.Init(&schema_sql, &migrations)
|
db.Init(&schema_sql, &migrations)
|
||||||
|
|
||||||
data_dir := "../../sample_data/data"
|
data_dir := "../../sample_data/data"
|
||||||
|
_ = os.MkdirAll(data_dir, os.FileMode(0o644))
|
||||||
// Create then connect to a new empty DB
|
// Create then connect to a new empty DB
|
||||||
dbPath := filepath.Join(data_dir, "test.db")
|
dbPath := filepath.Join(data_dir, "test.db")
|
||||||
_ = os.Remove(dbPath) // Delete it if it exists
|
_ = os.Remove(dbPath) // Delete it if it exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user