diff --git a/commands_test.go b/commands_test.go index 95e379274a..f5cc04ff87 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()).To(MatchError("LFU maxmemory policy is not selected")) + Expect(freq.Err()).To(MatchError(ContainSubstring("LFU maxmemory policy is not selected"))) err := client.ObjectEncoding(ctx, "key").Err() Expect(err).NotTo(HaveOccurred())