-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: mv assert to fixtures #3829
Conversation
231a7c3
to
0985c17
Compare
Codecov Report
@@ Coverage Diff @@
## master #3829 +/- ##
======================================
Coverage 100% 100%
======================================
Files 34 34
Lines 945 945
======================================
Hits 945 945 Continue to review full report at Codecov.
|
0985c17
to
fb68930
Compare
ad27040
to
3d6ea5a
Compare
@@ -168,15 +168,8 @@ describe('test/lib/egg.test.js', () => { | |||
const baseDir = utils.getFilepath('apps/dumpconfig'); | |||
let json; | |||
|
|||
await sleep(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不能删掉吧,dump config 会执行两次的,这里是分别在 ready 前后校验
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改了,移动到 fixtures
下 app.js
里了,这样就不用担心读取时机不对了,老板霸气~
3d6ea5a
to
f2b9c4d
Compare
f2b9c4d
to
580fc9b
Compare
test: mv assert to fixtures (#3829)
Checklist
npm test
passesAffected core subsystem(s)
Description of change
由于
dumpConfig
在app.ready()
前后各一次,且创建时间无法确定,通过sleep
方法检测在win
存在不确定性,将其移动到fixtures
下app.js
中使用文件读取的方式进行检测。