-
Notifications
You must be signed in to change notification settings - Fork 298
Description
Details
Successfully on:
14.x (Windows, Ubunto, Mac), 16.x (Windows, Ubunto, Mac), 18.x (Windows, Ubunto, Mac) and 20.3.0 (Windows).
Failed on:
20.3.0 (Ubunto and Mac).
For more, please see: https://github.com/MaledongGit/egg/actions/runs/5234494571/jobs/9450695057
Node.js version
20.3.0
Example code
In the unit test:
app.httpRequest()
.get('/__koa_mock_scene_toolbox/hello')
.expect(404, done);
if we ignored the snippet of codes above, the test can pass.
However even if I tried 3 or more times, it always gets me wrong. So please ignore this comment.
Operating system
Ubunto and Mac (with the latest version on GitHub for unit tests)
Scope
(This is a 3-rd party repo and I've pasted the unit test part).
Module and version
No response
PS: I've seen such issues many times after searching in Node, however mine is DIFF from others in:
Other people may meet this problem by accident, but I met this problem this morning and tested several times, it always got me mad with the "failed" test.
Only the specific kind of version of Nodejs, as well as Linux or Mac.
Is there anything changed or ……?
Notice:This issue can be temporarily solved by adding "await" at each request, which means eash request MUST BE waiting for the resp of the app, and then everything gets fine....