From 633cef6dd7f3505ae646d76fbc67d459588a8edf Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 29 Dec 2014 17:32:31 -0500 Subject: [PATCH] listTrim fix --- tests/database/list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/database/list.js b/tests/database/list.js index 3d8e243e33..b494a0c51c 100644 --- a/tests/database/list.js +++ b/tests/database/list.js @@ -102,16 +102,16 @@ describe('List methods', function() { it('should trim list to a certain range', function(done) { var list = ['1', '2', '3', '4', '5']; async.eachSeries(list, function(value, next) { - db.listAppend('testList2', value, next); + db.listAppend('testList3', value, next); }, function(err) { if (err) { return done(err); } - db.listTrim('testList2', 0, 2, function(err) { + db.listTrim('testList3', 0, 2, function(err) { assert.equal(err, null, 'db.listTrim error'); assert.equal(arguments.length, 1, 'arguments.length error'); - db.getListRange('testList2', 0, -1, function(err, list) { + db.getListRange('testList3', 0, -1, function(err, list) { assert.equal(list.length, 3, 'list length is not 3'); assert.deepEqual(list, ['1', '2', '3'], 'list not properly trimmed'); });