Skip to content

Commit a34ec30

Browse files
committed
tapdb: log path to sqlite test db
1 parent b732d20 commit a34ec30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tapdb/sqlite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ func NewSqliteStore(cfg *SqliteConfig) (*SqliteStore, error) {
160160
func NewTestSqliteDB(t *testing.T) *SqliteStore {
161161
t.Helper()
162162

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

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

0 commit comments

Comments
 (0)