-
Notifications
You must be signed in to change notification settings - Fork 208
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
npm test
fails with timeout
#452
Comments
Hi Andrew EDIT: I've just updated docker and I'm now getting the following error on win10: lb-mocha --allow-console-logs "packages/*/dist/__tests__/**/*.js"
!
0 passing (30s)
1 failing
1) "before all" hook in "{root}":
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7) EDIT2: https://www.testcontainers.org/supported_docker_environment/windows/ |
@raymondfeng Hi Raymond, I'm getting the same error below on Win 10 and Ubuntu 19. Do you have any ideas? > loopback4-example-shopping-monorepo@1.1.1 test /home/user/dev/loopback4-example-shopping
> lb-mocha --allow-console-logs "packages/*/dist/__tests__/**/*.js"
!
0 passing (33s)
1 failing
1) "before all" hook in "{root}":
Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
npm ERR! Test failed. See above for more details. |
npm test
fails on Windows 10npm test
fails on Windows 10/Ubuntu 19
Experiencing the same error. |
I'm using MacOS, and it seems to be working fine for me. @hacksparrow, since you're actively working on this repo, do you have some insights on this? Thanks.
|
Hard to tell without a Windows machine. |
@hacksparrow Is there anything I can run on Win 10/Ubuntu to give useful diag. info? @v-andrew I think |
It requires a docker engine to be running on the Windows machine. |
npm test
fails on Windows 10/Ubuntu 19npm test
fails on Windows 10
Resolved Ubuntu issue, not sure what was wrong but tests now run correctly. Have completely rebuilt VM with 4Gb RAM instead of 2Gb. |
It would be good to document and/or update the README.md because the installation instructions do not say anything about Docker. I myself never used Docker and I have no idea what I have to do to get this working. |
Working on Win 10 via WSL remote console on VSCode. > [email protected] test /i/dev/loopback4-example-shopping
> lb-mocha --allow-console-logs "packages/*/dist/__tests__/**/*.js"
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․,․․,․,․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
66 passing (14s)
3 pending |
Doesn't work with Docker running
|
For now, using WSL or linux VM are viable options. |
naming conflict introduced with use of testcontainers fixes loopbackio#452 Signed-off-by: Douglas McConnachie <[email protected]>
naming conflict introduced with use of testcontainers fixes #452 Signed-off-by: Douglas McConnachie <[email protected]>
Hi, when I run tests, always getting timeout error.
|
To reproduce, run the following commands:
git clone https://github.com/strongloop/loopback4-example-shopping
cd loopback4-example-shopping
npm install
npm test
It fails with:
The text was updated successfully, but these errors were encountered: