Update Hash to allow for expirey commands (#146)

* Convert hash to composite type. Fixed broken Hash commands from Hash refactor. Coverage and fixed broken test - @osteensco
This commit is contained in:
osteensco
2024-11-03 13:24:31 -06:00
committed by GitHub
parent 05b7601752
commit 09640082c4
8 changed files with 3577 additions and 3517 deletions

View File

@@ -2786,7 +2786,7 @@ func Test_Generic(t *testing.T) {
}()
client := resp.NewConn(conn)
expected := "Key"
expected := "key"
if err = client.WriteArray([]resp.Value{resp.StringValue("RANDOMKEY")}); err != nil {
t.Error(err)
}
@@ -2796,7 +2796,7 @@ func Test_Generic(t *testing.T) {
t.Error(err)
}
if !strings.Contains(res.String(), expected) {
if !strings.Contains(strings.ToLower(res.String()), expected) {
t.Errorf("expected a key containing substring '%s', got %s", expected, res.String())
}
})