From 6db91df45702a64cef70cb3f5a38c351f17cec88 Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Wed, 9 Oct 2024 09:36:47 +0300 Subject: [PATCH] Add xadd in mapArgs While testing I observed that XAdd arguments are also a map that should be compared with DeepEqual. Adding the cut for XAdd in the mapArgs. --- mock.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mock.go b/mock.go index 3c6a3b9..25eaba6 100644 --- a/mock.go +++ b/mock.go @@ -301,6 +301,9 @@ func (m *mock) mapArgs(cmd string, cmdArgs *[]interface{}) bool { case "hset", "hmset": // 2 cut = 2 + case "xadd": + // 3 + cut = 3 case "eval", "evalsha": // more, i guess nobody uses it (eval/evalsha), miss return false