Windows problem
Opened this issue · 5 comments
Don't know why but currently tests are failing on windows
I'll check it out.
The important line seems to be:
https://ci.appveyor.com/project/trailsjs/generator-trails/build/1.0.43/job/6868biw74pn4m6u8#L1128
It fails to shutdown the trails app, that's why also the next test is failing with EADDRINUSE.
info: Shutting down... (node:576) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'removeAllListeners' of undefine
Unfortunately I wasn't able to reproduce this on my Windows 10 VM, but i'll keep looking into it.
Okay, i was able to reproduce it. The test only fails, when you redirect the test output to a textfile.
Edit:
This affects all operating systems.
The test fails, because trails crashes while launching the repl (see trailsjs/trails#222). This has already been fixed in trailpack-repl (trailsjs/trailpack-repl#38). Now we just would need to bump the version numbers in https://github.com/trailsjs/trails/blob/master/archetype/package.json.
I'll open a PR on the trails repo, since this also is neccesary for the docker issue.
@jaumard There is already a PR which fixed the trailpack-repl version. You just need to merge this: trailsjs/trails#239 to fix this bug.