mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-20 21:14:04 +02:00
registered custom cgo sqlite driver
This commit is contained in:
1 parent
dcdf43f0fc
commit
b1307c9041
2 files changed
+12
-2
No files matched your search
@@ -105,6 +105,14 @@ func NewTestApp(optTestDataDir ...string) (*TestApp, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// ensure that the Dao and DB configurations are properly loaded
|
||||
if _, err := app.Dao().DB().NewQuery("Select 1").Execute(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if _, err := app.LogsDao().DB().NewQuery("Select 1").Execute(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// force disable request logs because the logs db call execute in a separate
|
||||
// go routine and it is possible to panic due to earlier api test completion.
|
||||
app.Settings().Logs.MaxDays = 0
|
||||
|
||||
Reference in new issue
Block a user