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/));