From a3e47dbf11705c38c7698077a87c7c17bb37a285 Mon Sep 17 00:00:00 2001 From: popomore Date: Thu, 22 Jun 2017 19:45:55 +0800 Subject: [PATCH] test: wait logger to flush fix https://travis-ci.org/eggjs/egg/jobs/245671138 --- test/lib/application.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/application.test.js b/test/lib/application.test.js index 8a1c454683..917742f545 100644 --- a/test/lib/application.test.js +++ b/test/lib/application.test.js @@ -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\./));