Rename lib_store and redis_store imports. Cache get remove redundant nil check.
This commit is contained in:
parent
472dc0c358
commit
f718a6b798
3 changed files with 11 additions and 12 deletions
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
lib_store "github.com/eko/gocache/lib/v4/store"
|
||||
libstore "github.com/eko/gocache/lib/v4/store"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
@ -64,7 +64,7 @@ func TestCacheClient(t *testing.T) {
|
|||
Key(key).
|
||||
Type(new(cacheTest)).
|
||||
Fetch(context.Background())
|
||||
assert.True(t, errors.Is(err, &lib_store.NotFound{}))
|
||||
assert.True(t, errors.Is(err, &libstore.NotFound{}))
|
||||
}
|
||||
assertFlushed()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue