From f40baee643e0e2b8e7d08d8d6fd62127a02ab132 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 5 Mar 2015 12:39:44 +0900 Subject: [PATCH] Fix test --- sqlite3_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlite3_test.go b/sqlite3_test.go index 4b0fe01..6570b52 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -845,7 +845,7 @@ func TestStress(t *testing.T) { func TestDateTimeLocal(t *testing.T) { zone := "Asia/Tokyo" tempFilename := TempFilename() - db, err := sql.Open("sqlite3", "file:///"+tempFilename+"?loc="+zone) + db, err := sql.Open("sqlite3", tempFilename+"?loc="+zone) if err != nil { t.Fatal("Failed to open database:", err) } @@ -863,7 +863,7 @@ func TestDateTimeLocal(t *testing.T) { } db.Close() - db, err = sql.Open("sqlite3", "file:///"+tempFilename) + db, err = sql.Open("sqlite3", tempFilename) if err != nil { t.Fatal("Failed to open database:", err) } @@ -888,7 +888,7 @@ func TestDateTimeLocal(t *testing.T) { db.Exec("INSERT INTO foo VALUES(?);", dt) db.Close() - db, err = sql.Open("sqlite3", "file:///"+tempFilename+"?loc="+zone) + db, err = sql.Open("sqlite3", tempFilename+"?loc="+zone) if err != nil { t.Fatal("Failed to open database:", err) }