Fix failing test.

This commit is contained in:
Vladimir Mihailenco 2012-10-14 16:22:54 +03:00
parent a94daf0c96
commit 1fa1eee592
1 changed files with 2 additions and 2 deletions

View File

@ -1542,7 +1542,7 @@ func (t *RedisTest) TestSAdd(c *C) {
sMembers := t.client.SMembers("set") sMembers := t.client.SMembers("set")
c.Assert(sMembers.Err(), IsNil) c.Assert(sMembers.Err(), IsNil)
c.Assert(sMembers.Val(), DeepEquals, []string{"World", "Hello"}) c.Assert(sortStrings(sMembers.Val()), DeepEquals, []string{"Hello", "World"})
} }
func (t *RedisTest) TestSCard(c *C) { func (t *RedisTest) TestSCard(c *C) {
@ -1668,7 +1668,7 @@ func (t *RedisTest) TestSMembers(c *C) {
sMembers := t.client.SMembers("set") sMembers := t.client.SMembers("set")
c.Assert(sMembers.Err(), IsNil) c.Assert(sMembers.Err(), IsNil)
c.Assert(sMembers.Val(), DeepEquals, []string{"World", "Hello"}) c.Assert(sortStrings(sMembers.Val()), DeepEquals, []string{"Hello", "World"})
} }
func (t *RedisTest) TestSMove(c *C) { func (t *RedisTest) TestSMove(c *C) {