Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnit test fails when excuting the unit test in Windows OS #2594
Comments
|
@jennynju Find why your test case didn't finished before timeout. And in your screenshot, there is a "no such file" error. Please provide the detailed codes of your test case. |
|
The failure happens when I excute
It failed at the assertion: I think the reason is the NODE PATH format various in different environment. I'd prefer use the default node path for this test in order to escape from different environment factors. |
|
@jennynju I just noticed that you are running our unit tests. In fact, the CI is passed. So there should be some problem in your local environment. The |
|
@chinesedfan, FYI, it has nothing to do with the port. |
|
@jennynju I see. We can only check the beginning part of the error message and ignore the file path. PR welcome. |
|
@chinesedfan , thanks for your comments. |
Describe the bug
Unit test case failed :
should pass errors for a failed stream:
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (***************...
To Reproduce
Use VS Code internal terminal to excute the unit test .
Expected behavior
UT should be excuted correctly.
Environment:
Additional context/Screenshots
