ezshare/store/bolt_test.go
2021-12-04 09:58:16 +01:00

19 lines
323 B
Go

package store_test
import (
"path/filepath"
"testing"
"gitea.benny.dog/torjus/ezshare/store"
)
func TestBoltStore(t *testing.T) {
path := filepath.Join(t.TempDir(), "boltstore.db")
s, err := store.NewBoltStore(path)
if err != nil {
t.Fatalf("Error opening store: %s", err)
}
doFileStoreTest(s, t)
s.Close()
}