Skip to content

Node.js based forum software built for the modern web

fixed getSortedSetRevRangeByScore test

psychobunnye442fed40a83
diff --git a/tests/database.js b/tests/database.js
index eaa8bc667a..093b487afa 100644
--- a/tests/database.js
+++ b/tests/database.js
@@ -295,8 +295,7 @@ describe('Test database', function() {
}
function getSortedSetRevRangeByScore(callback) {
- var args = ['sortedSet2', '+inf', 100, 'LIMIT', 0, 10];
- db.getSortedSetRevRangeByScore(args, function(err, data) {
+ db.getSortedSetRevRangeByScore('sortedSet2', +Infinity, 100, 0, 100, function(err, data) {
callback(err, {'getSortedSetRevRangeByScore': data});
});
}