try to move bolt test files out of /tmp

This commit is contained in:
Umputun
2018-05-24 20:40:38 -05:00
parent 01ba236e40
commit deee4a50c4
+1 -2
View File
@@ -11,7 +11,7 @@ import (
"github.com/umputun/remark/app/store"
)
var testDb = "/tmp/test-remark.db"
var testDb = "test-remark.db"
func TestBoltDB_CreateAndFind(t *testing.T) {
defer os.Remove(testDb)
@@ -285,7 +285,6 @@ func TestBoltDB_Ref(t *testing.T) {
// makes new boltdb, put two records
func prep(t *testing.T) *BoltDB {
os.Remove(testDb)
time.Sleep(10 * time.Millisecond)
boltStore, err := NewBoltDB(bolt.Options{}, BoltSite{FileName: testDb, SiteID: "radio-t"})
assert.Nil(t, err)