diff --git a/commands_test.go b/commands_test.go index 150b48ef7d..95e379274a 100644 --- a/commands_test.go +++ b/commands_test.go @@ -676,7 +676,7 @@ var _ = Describe("Commands", func() { Expect(refCount.Val()).To(Equal(int64(1))) freq := client.ObjectFreq(ctx, "key") - Expect(freq.Err()).NotTo(HaveOccurred()) + Expect(freq.Err()).To(MatchError("LFU maxmemory policy is not selected")) err := client.ObjectEncoding(ctx, "key").Err() Expect(err).NotTo(HaveOccurred())