From 620c7f96931dc9a4f2ac7511b1c15d35661e8919 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 19 Mar 2025 23:54:04 +0800 Subject: [PATCH] chore: add more tests (#4718) --- core/stores/redis/redis_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/stores/redis/redis_test.go b/core/stores/redis/redis_test.go index 388b105a0..b34792ee8 100644 --- a/core/stores/redis/redis_test.go +++ b/core/stores/redis/redis_test.go @@ -1090,6 +1090,13 @@ func TestRedis_GetDel(t *testing.T) { assert.Equal(t, "", val) }) }) + + t.Run("get_del_with_error", func(t *testing.T) { + runOnRedisWithError(t, func(client *Redis) { + _, err := newRedis(client.Addr, badType()).GetDel("hello") + assert.Error(t, err) + }) + }) } func TestRedis_GetSet(t *testing.T) {