Fix test, add test helper script

This commit is contained in:
Daniel 2019-08-20 15:42:46 +02:00
parent 1cf51f683b
commit a2d6bc974c
9 changed files with 90 additions and 175 deletions

View file

@ -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 {