Skip to content
Browse files

Fix SORT test

  • Loading branch information...
1 parent 547062d commit 531b60ad256ed1dbb000ec1f07f4d4295ff1d3a1 @pietern pietern committed Mar 9, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/distributed_commands_requiring_clustering_test.rb
View
5 test/distributed_commands_requiring_clustering_test.rb
@@ -132,8 +132,9 @@
r.rpush("{qux}bar", "1")
r.rpush("{qux}bar", "2")
- assert ["s1a", "s1b"] == r.sort("{qux}bar", :get => ["{qux}foo:*:a", "{qux}foo:*:b"], :limit => [0, 1])
- assert ["s2a", "s2b"] == r.sort("{qux}bar", :get => ["{qux}foo:*:a", "{qux}foo:*:b"], :limit => [0, 1], :order => "desc alpha")
+ assert [["s1a", "s1b"]] == r.sort("{qux}bar", :get => ["{qux}foo:*:a", "{qux}foo:*:b"], :limit => [0, 1])
+ assert [["s2a", "s2b"]] == r.sort("{qux}bar", :get => ["{qux}foo:*:a", "{qux}foo:*:b"], :limit => [0, 1], :order => "desc alpha")
+ assert [["s1a", "s1b"], ["s2a", "s2b"]] == r.sort("{qux}bar", :get => ["{qux}foo:*:a", "{qux}foo:*:b"])
end
test "SORT with STORE" do |r|

0 comments on commit 531b60a

Please sign in to comment.
Something went wrong with that request. Please try again.