Skip to content

Commit

Permalink
fix broken int tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kripu77 committed Dec 10, 2024
1 parent d0a4ad6 commit 60fb58b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration_tests/commands/resp/deque_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)"),
},
}

Expand Down
4 changes: 2 additions & 2 deletions integration_tests/commands/websocket/deque_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 60fb58b

Please sign in to comment.