mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-20 23:40:06 +02:00
flushing db after every test group that touches the db
This commit is contained in:
@@ -55,7 +55,6 @@ describe('Categories', function() {
|
||||
});
|
||||
|
||||
after(function() {
|
||||
db.delete('category:' + categoryObj.cid);
|
||||
db.sortedSetRemove('categories:cid', categoryObj.cid);
|
||||
db.flushdb();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -362,4 +362,8 @@ describe('Test database', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
after(function() {
|
||||
db.flushdb();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -285,4 +285,8 @@ describe('Groups', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
after(function() {
|
||||
db.flushdb();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user