remove console.log switch to series

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 3c6ec68eae
commit 1cb2e1e368

@ -129,7 +129,6 @@ module.exports = function (User) {
var banData; var banData;
async.waterfall([ async.waterfall([
function (next) { function (next) {
console.log(data);
db.getObjects(data.bans, next); db.getObjects(data.bans, next);
}, },
function (_banData, next) { function (_banData, next) {

@ -1244,14 +1244,14 @@ describe('Topic\'s', function () {
var socketAdmin = require('../src/socket.io/admin'); var socketAdmin = require('../src/socket.io/admin');
before(function (done) { before(function (done) {
async.parallel({ async.series([
topic1: function (next) { function (next) {
topics.post({ uid: adminUid, tags: ['php', 'nosql', 'psql', 'nodebb'], title: 'topic title 1', content: 'topic 1 content', cid: topic.categoryId }, 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); 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); assert.ifError(err);
done(); done();
}); });

Loading…
Cancel
Save