cache: handle errors when bolt tries to start
This commit is contained in:
parent
639e812789
commit
47450ba326
3 changed files with 18 additions and 20 deletions
3
cache/cache_internal_test.go
vendored
3
cache/cache_internal_test.go
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue