Skip to content

Node.js based forum software built for the modern web

final test fixes

barisusakli61f069a071df
diff --git a/tests/database/hash.js b/tests/database/hash.js
index 65d74c6757..c67b57fd64 100644
--- a/tests/database/hash.js
+++ b/tests/database/hash.js
@@ -74,7 +74,7 @@ describe('Hash methods', function() {
});
it('should return 3 objects with correct data', function(done) {
- db.getObjects(['testObject1', 'testObject2', 'doesnotexist'], function(err, objects) {
+ db.getObjects(['testObject4', 'testObject5', 'doesnotexist'], function(err, objects) {
assert.equal(err, null);
assert.equal(arguments.length, 2);
assert.equal(Array.isArray(objects) && objects.length === 3, true);
@@ -142,7 +142,7 @@ describe('Hash methods', function() {
describe('getObjectsFields()', function() {
before(function(done) {
- async([
+ async.parallel([
async.apply(db.setObject, 'testObject8', {name: 'baris', age:99}),
async.apply(db.setObject, 'testObject9', {name: 'ginger', age: 3})
], done);
diff --git a/tests/database/list.js b/tests/database/list.js
index 8819a4c861..59fa82aa58 100644
--- a/tests/database/list.js
+++ b/tests/database/list.js
@@ -99,7 +99,7 @@ describe('List methods', function() {
});
it('should remove the last element of list and return it', function(done) {
- db.listRemoveLast('testList2', function(err, lastElement) {
+ db.listRemoveLast('testList4', function(err, lastElement) {
assert.equal(err, null);
assert.equal(arguments.length, 2);
assert.equal(lastElement, '12');