fix tests

v1.18.x
Barış Soner Uşaklı 7 years ago
parent adf9d8eb83
commit 505e511e4d

@ -1080,14 +1080,12 @@ describe('Topic\'s', function () {
});
it('should mark topic notifications read', function (done) {
var socketPosts = require('../src/socket.io/posts');
async.waterfall([
function (next) {
socketTopics.follow({ uid: adminUid }, tid, next);
},
function (next) {
socketPosts.reply({ uid: uid }, { content: 'some content', tid: tid }, next);
topics.reply({ uid: uid, timestamp: Date.now(), content: 'some content', tid: tid }, next);
},
function (data, next) {
setTimeout(next, 2500);

Loading…
Cancel
Save