forked from TrueCloudLab/neoneo-go
16 lines
324 B
Go
16 lines
324 B
Go
package storage
|
|
|
|
import (
|
|
"path"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func newBoltStoreForTesting(t testing.TB) Store {
|
|
d := t.TempDir()
|
|
testFileName := path.Join(d, "test_bolt_db")
|
|
boltDBStore, err := NewBoltDBStore(BoltDBOptions{FilePath: testFileName})
|
|
require.NoError(t, err)
|
|
return boltDBStore
|
|
}
|