From 1cb2e1e3688affd949cde9f514ae0d345c339538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 26 Sep 2018 10:56:19 -0400 Subject: [PATCH] remove console.log switch to series --- src/user/info.js | 1 - test/topics.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/user/info.js b/src/user/info.js index eceea88b0e..aabdac3534 100644 --- a/src/user/info.js +++ b/src/user/info.js @@ -129,7 +129,6 @@ module.exports = function (User) { var banData; async.waterfall([ function (next) { - console.log(data); db.getObjects(data.bans, next); }, function (_banData, next) { diff --git a/test/topics.js b/test/topics.js index c7655e6d66..cd15149d6e 100644 --- a/test/topics.js +++ b/test/topics.js @@ -1244,14 +1244,14 @@ describe('Topic\'s', function () { var socketAdmin = require('../src/socket.io/admin'); before(function (done) { - async.parallel({ - topic1: function (next) { + async.series([ + function (next) { topics.post({ uid: adminUid, tags: ['php', 'nosql', 'psql', 'nodebb'], title: 'topic title 1', content: 'topic 1 content', cid: topic.categoryId }, next); }, - topic2: function (next) { + function (next) { topics.post({ uid: adminUid, tags: ['javascript', 'mysql', 'python', 'nodejs'], title: 'topic title 2', content: 'topic 2 content', cid: topic.categoryId }, next); }, - }, function (err) { + ], function (err) { assert.ifError(err); done(); });