chore: add more tests (#4718)

This commit is contained in:
Kevin Wan
2025-03-19 23:54:04 +08:00
committed by GitHub
parent dba444a382
commit 620c7f9693

View File

@@ -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) {