chore: add redis test (#4593)

This commit is contained in:
Kevin Wan
2025-01-23 00:03:49 +08:00
committed by GitHub
parent 37b54d1fc7
commit 4307ce45fc
2 changed files with 8 additions and 9 deletions

View File

@@ -1996,9 +1996,9 @@ func TestSetSlowThreshold(t *testing.T) {
assert.Equal(t, time.Second, slowThreshold.Load())
}
func TestRedis_WithPass(t *testing.T) {
func TestRedis_WithUserPass(t *testing.T) {
runOnRedis(t, func(client *Redis) {
err := newRedis(client.Addr, WithPass("any")).Ping()
err := newRedis(client.Addr, WithUser("any"), WithPass("any")).Ping()
assert.NotNil(t, err)
})
}