altering the timings on some tests to make them slightly less flaky (maybe)

cdb
Gareth Jones 10 years ago
parent fb9948145c
commit a27345461b

@ -60,7 +60,7 @@ vows.describe('log4js categoryFilter').addBatch({
weblogger.info('00:00:00 GET / 200');
weblogger.warn('00:00:00 GET / 500');
//wait for the file system to catch up
setTimeout(this.callback, 100);
setTimeout(this.callback, 500);
},
'tmp-tests.log': {
topic: function() {

@ -56,7 +56,7 @@ vows.describe('log4js logLevelFilter').addBatch({
logger.warn('both');
logger.debug('main');
//wait for the file system to catch up
setTimeout(this.callback, 100);
setTimeout(this.callback, 500);
},
'tmp-tests.log': {
topic: function() {

@ -150,10 +150,10 @@ vows.describe('log4js smtpAppender').addBatch({
}, 500);
setTimeout(function () {
setup.logger.info('Log event #3');
}, 1050);
}, 1100);
setTimeout(function () {
self.callback(null, setup);
}, 2100);
}, 3000);
},
'there should be three messages': function (result) {
assert.equal(result.results.length, 3);
@ -181,13 +181,13 @@ vows.describe('log4js smtpAppender').addBatch({
}, 0);
setTimeout(function () {
setup.logger.info('Log event #2');
}, 500);
}, 100);
setTimeout(function () {
setup.logger.info('Log event #3');
}, 1050);
}, 1500);
setTimeout(function () {
self.callback(null, setup);
}, 2100);
}, 3000);
},
'there should be two messages': function (result) {
assert.equal(result.results.length, 2);
@ -228,6 +228,4 @@ vows.describe('log4js smtpAppender').addBatch({
assert.equal(cons.errors[0].value.message, 'oh noes');
}
}
}).export(module);

Loading…
Cancel
Save