fix: clear error log before checking

fix intermittent test failure due to analytics being written every 10 seconds
v1.18.x
Barış Soner Uşaklı 5 years ago
parent 5a2b515431
commit 75b3a81dad

@ -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');

Loading…
Cancel
Save