This commit is contained in:
silentsai 2014-05-22 12:52:09 +08:00
parent 429c033b68
commit 10dc7ccd15
1 changed files with 2 additions and 2 deletions

View File

@ -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))