cache: handle errors when bolt tries to start

This commit is contained in:
remusb 2017-11-30 12:27:59 +02:00
parent 639e812789
commit 47450ba326
3 changed files with 18 additions and 20 deletions

View file

@ -44,7 +44,8 @@ func TestInternalInit(t *testing.T) {
// delete the default path
dbPath := filepath.Join(fs.CacheDir, "cache-backend", *RemoteName+".db")
boltDb = cache.GetPersistent(dbPath, true)
boltDb, err = cache.GetPersistent(dbPath, true)
require.NoError(t, err)
fstest.Initialise()
if len(*WrapRemote) == 0 {