From 10dc7ccd15085099ee90741b6868006f2db1acc0 Mon Sep 17 00:00:00 2001 From: silentsai Date: Thu, 22 May 2014 12:52:09 +0800 Subject: [PATCH] update --- ledis/t_zset_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledis/t_zset_test.go b/ledis/t_zset_test.go index 57f0698..a3e8827 100644 --- a/ledis/t_zset_test.go +++ b/ledis/t_zset_test.go @@ -6,7 +6,7 @@ import ( ) const ( - EndPos int = -1 + endPos int = -1 ) func bin(sz string) []byte { @@ -135,7 +135,7 @@ func TestZSetOrder(t *testing.T) { } } - if qMembs, err := db.ZRange(key, 0, EndPos, false); err != nil { + if qMembs, err := db.ZRange(key, 0, endPos, false); err != nil { t.Fatal(err) } else if len(qMembs) != membCnt { t.Fatal(fmt.Sprintf("%d vs %d", len(qMembs), membCnt))