From 60fb58b1a6a6b52907656428c9da999c581ee8fa Mon Sep 17 00:00:00 2001 From: kripu77 Date: Tue, 10 Dec 2024 22:09:28 +1100 Subject: [PATCH] fix broken int tests --- integration_tests/commands/resp/deque_test.go | 4 ++-- integration_tests/commands/websocket/deque_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_tests/commands/resp/deque_test.go b/integration_tests/commands/resp/deque_test.go index db69db3ce..2995497ff 100644 --- a/integration_tests/commands/resp/deque_test.go +++ b/integration_tests/commands/resp/deque_test.go @@ -236,12 +236,12 @@ func TestLPushRPop(t *testing.T) { { name: "LPUSH RPOP normal values", cmds: append([]string{"LPUSH k " + strings.Join(deqNormalValues, " ")}, getPops(deqNormalValues)...), - expect: append(append([]any{int64(14)}, getPopExpects(deqNormalValues)...), "(nil)"), + expect: append(append([]any{int64(len(deqNormalValues))}, getPopExpects(deqNormalValues)...), "(nil)"), }, { name: "LPUSH RPOP edge values", cmds: append([]string{"LPUSH k " + strings.Join(deqEdgeValues, " ")}, getPops(deqEdgeValues)...), - expect: append(append([]any{int64(17)}, getPopExpects(deqEdgeValues)...), "(nil)"), + expect: append(append([]any{int64(len(deqEdgeValues))}, getPopExpects(deqEdgeValues)...), "(nil)"), }, } diff --git a/integration_tests/commands/websocket/deque_test.go b/integration_tests/commands/websocket/deque_test.go index 9f84fa46f..443cbc72d 100644 --- a/integration_tests/commands/websocket/deque_test.go +++ b/integration_tests/commands/websocket/deque_test.go @@ -533,8 +533,8 @@ func TestRPOPCount(t *testing.T) { float64(2), float64(3), float64(4), - []interface{}{"v3", "v4"}, - []interface{}{"v1", "v2"}, + []interface{}{"v4", "v3"}, + []interface{}{"v2", "v1"}, "ERR value is not an integer or out of range", "ERR value is not an integer or a float", float64(0),