From 43f0d5c6b984b64a4c35929ccb5a60e3eacbadc7 Mon Sep 17 00:00:00 2001 From: popomore Date: Thu, 19 Oct 2017 14:14:08 +0800 Subject: [PATCH] f --- test/lib/egg.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lib/egg.test.js b/test/lib/egg.test.js index 6fecf52206..a7146c4166 100644 --- a/test/lib/egg.test.js +++ b/test/lib/egg.test.js @@ -223,6 +223,8 @@ describe('test/lib/egg.test.js', () => { .expect('hello') .expect(200); + yield sleep(1000); + const logPath = path.join(utils.getFilepath('apps/base-context-class'), 'logs/base-context-class/base-context-class-web.log'); const log = fs.readFileSync(logPath, 'utf8'); assert(log.match(/INFO .*? \[service\.home\] appname: base-context-class/));