test(decaymap): fix tests

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-12-28 18:46:32 -05:00
parent f56c242167
commit f2cde94b71
4 changed files with 11 additions and 27 deletions

View File

@@ -27,7 +27,7 @@ type impl struct {
}
func (i *impl) Delete(_ context.Context, key string) error {
if !i.store.Delete(key) {
if _, ok := i.store.Get(key); !ok {
return fmt.Errorf("%w: %q", store.ErrNotFound, key)
}