Skip to content

Commit 620c7f9

Browse files
authored
chore: add more tests (zeromicro#4718)
1 parent dba444a commit 620c7f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/stores/redis/redis_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,13 @@ func TestRedis_GetDel(t *testing.T) {
10901090
assert.Equal(t, "", val)
10911091
})
10921092
})
1093+
1094+
t.Run("get_del_with_error", func(t *testing.T) {
1095+
runOnRedisWithError(t, func(client *Redis) {
1096+
_, err := newRedis(client.Addr, badType()).GetDel("hello")
1097+
assert.Error(t, err)
1098+
})
1099+
})
10931100
}
10941101

10951102
func TestRedis_GetSet(t *testing.T) {

0 commit comments

Comments
 (0)