Skip to content

Node.js based forum software built for the modern web

reset post cache between each suite

Barış Soner Uşaklı5dbc7f032a8b
diff --git a/test/mocks/databasemock.js b/test/mocks/databasemock.js
index 537a880a9b..98077ea211 100644
--- a/test/mocks/databasemock.js
+++ b/test/mocks/databasemock.js
@@ -173,6 +173,8 @@ function setupMockDefaults(callback) {
function (next) {
var groups = require('../../src/groups');
groups.resetCache();
+ var posts = require('../../src/posts/cache');
+ posts.cache.reset();
next();
},
function (next) {