mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: clear error log before checking
fix intermittent test failure due to analytics being written every 10 seconds
This commit is contained in:
@@ -392,6 +392,8 @@ describe('Admin Controllers', function () {
|
||||
});
|
||||
|
||||
it('should load /admin/advanced/errors/export', function (done) {
|
||||
meta.errors.clear(function (err) {
|
||||
assert.ifError(err);
|
||||
request(nconf.get('url') + '/api/admin/advanced/errors/export', { jar: jar }, function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert.equal(res.statusCode, 200);
|
||||
@@ -399,6 +401,7 @@ describe('Admin Controllers', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('should load /admin/advanced/logs', function (done) {
|
||||
var fs = require('fs');
|
||||
|
||||
Reference in New Issue
Block a user