1
Fork 0

Fix tests
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jan-Lukas Else 2021-08-10 22:39:31 +02:00
parent 58a0d6aa6b
commit 2389deb85f
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"database/sql"
"net/http"
"net/http/httptest"
"path/filepath"
"testing"
"github.com/spf13/viper"
@ -13,7 +14,7 @@ import (
func setupFakeDB(t *testing.T) {
var err error
appDb, err = sql.Open("sqlite3", "file::memory:")
appDb, err = sql.Open("sqlite3", filepath.Join(t.TempDir(), "data.db")+"?cache=shared&mode=rwc&_journal_mode=WAL&_busy_timeout=100")
if err != nil {
t.Fatal(err)
}