Skip to content

Commit 07196c2

Browse files
author
Nexus
committed
fix: fix assignment mismatch for Delete and ClearAll
1 parent 8aca60b commit 07196c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cache/runtime/cache_runtime_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func TestRuntimeCache_Delete(t *testing.T) {
101101
test.Nil(t, e)
102102
test.Equal(t, TESTCacheValue, value)
103103

104-
_, _ = cache.Delete(TESTCacheKey)
104+
_ = cache.Delete(TESTCacheKey)
105105

106106
value, e = cache.Get(TESTCacheKey)
107107
test.Nil(t, e)
@@ -120,7 +120,7 @@ func TestRuntimeCache_ClearAll(t *testing.T) {
120120
}
121121
test.Equal(t, TESTCacheValue, val2)
122122

123-
_, _ = cache.ClearAll()
123+
_ = cache.ClearAll()
124124
exists2, err := cache.Exists("2")
125125
if err != nil {
126126
t.Error(err)

0 commit comments

Comments
 (0)