Skip to content

Commit

Permalink
test: wait logger to flush (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Jun 22, 2017
1 parent 82d2158 commit c31bc15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/lib/application.test.js
Expand Up @@ -137,6 +137,7 @@ describe('test/lib/application.test.js', () => {
it('should warn if confused configurations exist', function* () {
const app = utils.app('apps/confused-configuration');
yield app.ready();
yield sleep(1000);
const logs = fs.readFileSync(utils.getFilepath('apps/confused-configuration/logs/confused-configuration/confused-configuration-web.log'), 'utf8');
assert(logs.match(/Unexpected config key `bodyparser` exists, Please use `bodyParser` instead\./));
assert(logs.match(/Unexpected config key `notFound` exists, Please use `notfound` instead\./));
Expand Down

0 comments on commit c31bc15

Please sign in to comment.