From 59f20de728c91fc2a6593419074299398d8358b4 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 2 Nov 2015 11:56:49 +0900 Subject: [PATCH] fix tests --- sqlite3_fts3_test.go | 2 +- sqlite3_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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)