remove unnecessary groups.resetCache calls

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 061b279c48
commit 805da98a36

@ -15,7 +15,6 @@ describe('blacklist', function () {
var adminUid;
before(function (done) {
groups.resetCache();
user.create({ username: 'admin' }, function (err, uid) {
assert.ifError(err);
adminUid = uid;

@ -19,7 +19,6 @@ describe('Categories', function () {
var adminUid;
before(function (done) {
groups.resetCache();
async.series({
posterUid: function (next) {
User.create({ username: 'poster' }, next);

@ -28,7 +28,6 @@ describe('Controllers', function () {
var category;
before(function (done) {
groups.resetCache();
async.series({
category: function (next) {
categories.create({

@ -20,7 +20,6 @@ describe('feeds', function () {
var fooUid;
var cid;
before(function (done) {
groups.resetCache();
meta.config['feeds:disableRSS'] = 1;
async.series({
category: function (next) {

@ -16,7 +16,6 @@ var Meta = require('../src/meta');
describe('Flags', function () {
before(function (done) {
Groups.resetCache();
// Create some stuff to flag
async.waterfall([
async.apply(User.create, { username: 'testUser', password: 'abcdef', email: 'b@c.com' }),

@ -14,7 +14,6 @@ describe('Groups', function () {
var adminUid;
var testUid;
before(function (done) {
Groups.resetCache();
async.series([
function (next) {
// Create a group to play around with

@ -20,7 +20,6 @@ describe('Messaging Library', function () {
var roomId;
before(function (done) {
Groups.resetCache();
// Create 3 users: 1 admin, 2 regular
async.series([
async.apply(User.create, { username: 'foo', password: 'barbar' }), // admin

@ -18,7 +18,6 @@ describe('Notifications', function () {
var notification;
before(function (done) {
groups.resetCache();
user.create({ username: 'poster' }, function (err, _uid) {
if (err) {
return done(err);

@ -30,7 +30,6 @@ describe('Post\'s', function () {
var cid;
before(function (done) {
groups.resetCache();
async.series({
voterUid: function (next) {
user.create({ username: 'upvoter' }, next);

@ -14,12 +14,11 @@ describe('rewards', function () {
var herpUid;
before(function (done) {
Groups.resetCache();
// Create 3 users: 1 admin, 2 regular
async.series([
async.apply(User.create, { username: 'foo', password: 'barbar' }),
async.apply(User.create, { username: 'baz', password: 'quuxquux' }),
async.apply(User.create, { username: 'herp', password: 'derpderp' }),
async.apply(User.create, { username: 'foo' }),
async.apply(User.create, { username: 'baz' }),
async.apply(User.create, { username: 'herp' }),
], function (err, uids) {
if (err) {
return done(err);

@ -42,7 +42,7 @@ describe('socket.io', function () {
adminUid = data[0];
regularUid = data[1];
cid = data[2].cid;
groups.resetCache();
groups.join('administrators', data[0], done);
});
});

@ -23,7 +23,6 @@ describe('Topic\'s', function () {
var adminUid;
before(function (done) {
groups.resetCache();
User.create({ username: 'admin', password: '123456' }, function (err, uid) {
if (err) {
return done(err);

@ -23,8 +23,6 @@ describe('User', function () {
var testCid;
before(function (done) {
groups.resetCache();
Categories.create({
name: 'Test Category',
description: 'A test',

Loading…
Cancel
Save