cleaner tests i thought
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"local/dndex/config"
|
||||
"local/dndex/storage/entity"
|
||||
"os"
|
||||
"regexp"
|
||||
@@ -20,9 +19,8 @@ type BoltDB struct {
|
||||
db *bolt.DB
|
||||
}
|
||||
|
||||
func NewBoltDB() *BoltDB {
|
||||
config := config.New()
|
||||
db, err := bolt.Open(config.DBURI, os.ModePerm, &bolt.Options{
|
||||
func NewBoltDB(path string) *BoltDB {
|
||||
db, err := bolt.Open(path, os.ModePerm, &bolt.Options{
|
||||
Timeout: time.Second * 3,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user