diff --git a/sqlite3_fts3_test.go b/sqlite3_fts3_test.go index beb5ada..87b4db8 100644 --- a/sqlite3_fts3_test.go +++ b/sqlite3_fts3_test.go @@ -83,7 +83,7 @@ func TestFTS3(t *testing.T) { } func TestFTS4(t *testing.T) { - tempFilename := TempFilename() + tempFilename := TempFilename(t) db, err := sql.Open("sqlite3", tempFilename) if err != nil { t.Fatal("Failed to open database:", err) diff --git a/sqlite3_test.go b/sqlite3_test.go index 90bee51..22b9c21 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -13,7 +13,6 @@ import ( "io/ioutil" "net/url" "os" - "path/filepath" "reflect" "regexp" "strings" @@ -796,7 +795,7 @@ func TestTimezoneConversion(t *testing.T) { } func TestSuite(t *testing.T) { - tempFilename := TempFilename() + tempFilename := TempFilename(t) db, err := sql.Open("sqlite3", tempFilename+"?_busy_timeout=99999") if err != nil { t.Fatal(err)