Skip to content

Commit

Permalink
tapdb: log path to sqlite test db
Browse files Browse the repository at this point in the history
  • Loading branch information
ffranr committed Dec 8, 2023
1 parent b62ef3b commit 0cf92e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tapdb/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ func NewSqliteStore(cfg *SqliteConfig) (*SqliteStore, error) {
func NewTestSqliteDB(t *testing.T) *SqliteStore {
t.Helper()

t.Logf("Creating new SQLite DB for testing")
dbFileName := filepath.Join(t.TempDir(), "tmp.db")
t.Logf("Creating new SQLite DB for testing: %s", dbFileName)

// TODO(roasbeef): if we pass :memory: for the file name, then we get
// an in mem version to speed up tests
dbFileName := filepath.Join(t.TempDir(), "tmp.db")
sqlDB, err := NewSqliteStore(&SqliteConfig{
DatabaseFileName: dbFileName,
SkipMigrations: false,
Expand Down

0 comments on commit 0cf92e0

Please sign in to comment.