mirror of
https://github.com/safing/portbase
synced 2025-09-10 06:15:08 +00:00
Fix test, add test helper script
This commit is contained in:
parent
1cf51f683b
commit
a2d6bc974c
9 changed files with 90 additions and 175 deletions
|
@ -26,9 +26,7 @@ func init() {
|
|||
|
||||
// NewBadger opens/creates a badger database.
|
||||
func NewBadger(name, location string) (storage.Interface, error) {
|
||||
opts := badger.DefaultOptions
|
||||
opts.Dir = location
|
||||
opts.ValueDir = location
|
||||
opts := badger.DefaultOptions(location)
|
||||
|
||||
db, err := badger.Open(opts)
|
||||
if err == badger.ErrTruncateNeeded {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue