aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_fts3_test.go
diff options
context:
space:
mode:
authorLars Buitinck <l.buitinck@esciencecenter.nl>2015-06-05 16:02:14 +0200
committerLars Buitinck <l.buitinck@esciencecenter.nl>2015-06-05 16:38:51 +0200
commitcebbf42ff60a87f038ef03b3c5734817d41ef0d6 (patch)
treec8c7a0926edc94d8d1b488c92811fcff74455713 /sqlite3_fts3_test.go
parentremove -lpthread. related issue #201 (diff)
downloadgolite-cebbf42ff60a87f038ef03b3c5734817d41ef0d6.tar.gz
golite-cebbf42ff60a87f038ef03b3c5734817d41ef0d6.tar.xz
Get reliable tempfile names from ioutil.TempFile
Also makes them easier to spot (the tests tend to litter /tmp).
Diffstat (limited to 'sqlite3_fts3_test.go')
-rw-r--r--sqlite3_fts3_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3_fts3_test.go b/sqlite3_fts3_test.go
index a1cd217..716a106 100644
--- a/sqlite3_fts3_test.go
+++ b/sqlite3_fts3_test.go
@@ -12,7 +12,7 @@ import (
)
func TestFTS3(t *testing.T) {
- tempFilename := TempFilename()
+ tempFilename := TempFilename(t)
db, err := sql.Open("sqlite3", tempFilename)
if err != nil {
t.Fatal("Failed to open database:", err)