Skip to content

Commit 36b312d

Browse files
committed
fix: remove HashAlgorithm in tests to reflect the removal of this not implemented feature
Signed-off-by: Sandor Szücs <[email protected]>
1 parent 30bde04 commit 36b312d

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

net/valkey_test.go

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -500,54 +500,6 @@ func TestValkeyClientGetSetWithExpire(t *testing.T) {
500500
wait: 1100 * time.Millisecond,
501501
wantErr: true,
502502
},
503-
{
504-
name: "add one, get one, no expiration, with Rendezvous hash",
505-
options: &ValkeyOptions{
506-
Addrs: []string{valkeyAddr},
507-
HashAlgorithm: "rendezvous",
508-
},
509-
key: "k1",
510-
value: "foo",
511-
expire: time.Second,
512-
expect: "foo",
513-
wantErr: false,
514-
},
515-
{
516-
name: "add one, get one, no expiration, with Rendezvous Vnodes hash",
517-
options: &ValkeyOptions{
518-
Addrs: []string{valkeyAddr},
519-
HashAlgorithm: "rendezvousVnodes",
520-
},
521-
key: "k1",
522-
value: "foo",
523-
expire: time.Second,
524-
expect: "foo",
525-
wantErr: false,
526-
},
527-
{
528-
name: "add one, get one, no expiration, with Jump hash",
529-
options: &ValkeyOptions{
530-
Addrs: []string{valkeyAddr},
531-
HashAlgorithm: "jump",
532-
},
533-
key: "k1",
534-
value: "foo",
535-
expire: time.Second,
536-
expect: "foo",
537-
wantErr: false,
538-
},
539-
{
540-
name: "add one, get one, no expiration, with Multiprobe hash",
541-
options: &ValkeyOptions{
542-
Addrs: []string{valkeyAddr},
543-
HashAlgorithm: "mpchash",
544-
},
545-
key: "k1",
546-
value: "foo",
547-
expire: time.Second,
548-
expect: "foo",
549-
wantErr: false,
550-
},
551503
} {
552504
t.Run(tt.name, func(t *testing.T) {
553505
cli, err := NewValkeyRingClient(tt.options)

0 commit comments

Comments
 (0)