Skip to content

Commit 086a996

Browse files
committed
lint
1 parent a07b1fc commit 086a996

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

block/internal/reaping/reaper_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/ipfs/go-datastore"
109
ds "github.com/ipfs/go-datastore"
1110
dssync "github.com/ipfs/go-datastore/sync"
1211
"github.com/libp2p/go-libp2p/core/crypto"
@@ -226,7 +225,7 @@ func TestReaper_CachePersistence(t *testing.T) {
226225

227226
// Create cache with real store
228227
tempDir := t.TempDir()
229-
dataStore := dssync.MutexWrap(datastore.NewMapDatastore())
228+
dataStore := dssync.MutexWrap(ds.NewMapDatastore())
230229
st := store.New(dataStore)
231230
cfg := config.Config{
232231
RootDir: tempDir,
@@ -251,7 +250,7 @@ func TestReaper_CachePersistence(t *testing.T) {
251250
require.NoError(t, cm.SaveToDisk())
252251

253252
// Create new cache manager and load from disk
254-
dataStore2 := dssync.MutexWrap(datastore.NewMapDatastore())
253+
dataStore2 := dssync.MutexWrap(ds.NewMapDatastore())
255254
st2 := store.New(dataStore2)
256255
cm2, err := cache.NewManager(cfg, st2, zerolog.Nop())
257256
require.NoError(t, err)

0 commit comments

Comments
 (0)